Overview | Index | Help

## BasicFormattersTest0001

`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`

  test cases of formatters defined in `BasicFormatters`.

  Test cases matrix
  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

### testFormatUnit0001

`val testFormatUnit0001`

### testFormatInt0001

`val testFormatInt0001`

### testFormatInt0002

`val testFormatInt0002`

### testFormatInt0003

`val testFormatInt0003`

### testFormatWord0001

`val testFormatWord0001`

### testFormatWord0002

`val testFormatWord0002`

### testFormatReal0001

`val testFormatReal0001`

### testFormatReal0002

`val testFormatReal0002`

### testFormatReal0003

`val testFormatReal0003`

### testFormatChar0001

`val testFormatChar0001`

### testFormatString0001

`val testFormatString0001`

### testFormatString0002

`val testFormatString0002`

### testFormatString0003

`val testFormatString0003`

### testFormatSubstring0001

`val testFormatSubstring0001`

### testFormatSubstring0002

`val testFormatSubstring0002`

### testFormatSubstring0003

`val testFormatSubstring0003`

### testFormatArray0001

`val testFormatArray0001`

### testFormatArray0002

`val testFormatArray0002`

### testFormatArray0003

`val testFormatArray0003`

### testFormatVector0001

`val testFormatVector0001`

### testFormatVector0002

`val testFormatVector0002`

### testFormatVector0003

`val testFormatVector0003`

### testFormatRef0001

`val testFormatRef0001`

### testFormatBool0001

`val testFormatBool0001`

### testFormatBool0002

`val testFormatBool0002`

### testFormatOption0001

`val testFormatOption0001`

### testFormatOption0002

`val testFormatOption0002`

### testFormatOrder0001

`val testFormatOrder0001`

### testFormatOrder0002

`val testFormatOrder0002`

### testFormatOrder0003

`val testFormatOrder0003`

### testFormatList0001

`val testFormatList0001`

### testFormatList0002

`val testFormatList0002`

### testFormatList0003

`val testFormatList0003`

### suite

`val suite`

Overview | Index | Help