Changeset 1051 for trunk/org.modelica.mdt.test
- Timestamp:
- 10/30/11 21:07:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/util/CodeDepot.java
r435 r1051 44 44 /** 45 45 * This file contains some code snippets that can 46 * are useful lto copy'n'paste while testing/debugging but46 * are useful to copy'n'paste while testing/debugging but 47 47 * don't quite fit into some proper class. 48 48 */ … … 52 52 * Show calling test methods 53 53 * 54 * Prints to standard out all JUnit test methods that are running55 * this code. Useful lto find out exactly which tests are invoking56 * some particular code. Just past it at the begin ing of whatever54 * Prints to standard out all JUnit test methods that are running 55 * this code. Useful to find out exactly which tests are invoking 56 * some particular code. Just past it at the beginning of whatever 57 57 * block you want to check-out. 58 58 */ … … 82 82 * based on a seed. 83 83 * The length of the string is random up to maxLenght. 84 * This function is determ enistic, given the same seed and maxLength function84 * This function is deterministic, given the same seed and maxLength function 85 85 * always returns same string. 86 86 */ … … 113 113 * @param width string will be formatted as lines of source code with provided 114 114 * maximal width 115 * @return the provided string with all w ierd characters escaped, a format115 * @return the provided string with all weird characters escaped, a format 116 116 * suitable to paste into java source code 117 117 */ … … 175 175 // /* 176 176 // * prepend "\\u" and zeros to make the hex number exactly 4 characters long 177 // * and to create a le agal unicode escape secvence177 // * and to create a legal unicode escape sequence 178 178 // */ 179 179 // return "\\u" + "0000".substring(0, 4 - hex.length()) + hex;
Note: See TracChangeset
for help on using the changeset viewer.