|
structure BasicFormattersTest0001 =
struct
structure Assert = SMLUnit.Assert
structure Test = SMLUnit.Test
structure U = SMLPPTestUtil
structure FE = SMLPP.FormatExpression
structure FE = SMLPP.FormatExpression
structure BF = SMLPP.BasicFormatters
val testFormatUnit0001
val testFormatInt0001
val testFormatInt0002
val testFormatInt0003
val testFormatWord0001
val testFormatWord0002
val testFormatReal0001
val testFormatReal0002
val testFormatReal0003
val testFormatChar0001
val testFormatString0001
val testFormatString0002
val testFormatString0003
val testFormatSubstring0001
val testFormatSubstring0002
val testFormatSubstring0003
val testFormatArray0001
val testFormatArray0002
val testFormatArray0003
val testFormatVector0001
val testFormatVector0002
val testFormatVector0003
val testFormatRef0001
val testFormatBool0001
val testFormatBool0002
val testFormatOption0001
val testFormatOption0002
val testFormatOrder0001
val testFormatOrder0002
val testFormatOrder0003
val testFormatList0001
val testFormatList0002
val testFormatList0003
val suite
end
BasicFormatters
.
case | value to be formatted |
---|---|
FormatUnit0001 | () |
FormatInt0001 | ~123456 |
FormatInt0002 | 0 |
FormatInt0003 | 123456 |
FormatWord0001 | 0w0 |
FormatWord0002 | 0wx123456 |
FormatReal0001 | ~123.456 |
FormatReal0002 | 0.0 |
FormatReal0003 | 123.456 |
FormatChar0001 | #"a" |
FormatString0001 | "abc" |
FormatString0002 | "" |
FormatString0003 | "a" |
FormatSubstring0001 | "abc" |
FormatSubstring0002 | "" |
FormatSubstring0003 | "a" |
FormatExn0001 | (omitted) |
FormatArray0001 | ["a", "b", "c"] |
FormatArray0002 | [] |
FormatArray0003 | ["a"] |
FormatVector0001 | ["a", "b", "c"] |
FormatVector0002 | [] |
FormatVector0003 | ["a"] |
FormatRef0001 | ref () |
FormatBool0001 | true |
FormatBool0002 | false |
FormatOption0001 | SOME () |
FormatOption0002 | NONE |
FormatOrder0001 | LESS |
FormatOrder0002 | EQUAL |
FormatOrder0003 | GREATER |
FormatList0001 | ["a", "b", "c"] |
FormatList0002 | [] |
FormatList0003 | ["a"] |
Value detail |
---|
val testFormatUnit0001
val testFormatInt0001
val testFormatInt0002
val testFormatInt0003
val testFormatWord0001
val testFormatWord0002
val testFormatReal0001
val testFormatReal0002
val testFormatReal0003
val testFormatChar0001
val testFormatString0001
val testFormatString0002
val testFormatString0003
val testFormatSubstring0001
val testFormatSubstring0002
val testFormatSubstring0003
val testFormatArray0001
val testFormatArray0002
val testFormatArray0003
val testFormatVector0001
val testFormatVector0002
val testFormatVector0003
val testFormatRef0001
val testFormatBool0001
val testFormatBool0002
val testFormatOption0001
val testFormatOption0002
val testFormatOrder0001
val testFormatOrder0002
val testFormatOrder0003
val testFormatList0001
val testFormatList0002
val testFormatList0003
val suite
|