module lang::std::tests::ASCII
rascal-0.40.16
Usage
import lang::std::tests::ASCII;
Dependencies
import lang::std::ASCII;
import Exception;
syntax Ascii
lexical Ascii = [\a00-\a7f];
Tests
test ascii1
test bool ascii1() = Ascii _ := [Ascii] "a";
test alnum1
test bool alnum1() = Alnum _ := [Alnum] "A";
test alnum2
test bool alnum2() = Alnum _ := [Alnum] "a";
test alnum3
test bool alnum3() = Alnum _ := [Alnum] "0";
test alpha1
test bool alpha1() = Alpha _ := [Alpha] "A";
test alpha2
test bool alpha2() = Alpha _ := [Alpha] "a";
test upper1
test bool upper1() = Upper _ := [Upper] "A";
test lower1
test bool lower1() = Lower _ := [Lower] "a";
test blank1
test bool blank1() = Blank _ := [Blank] " ";
test blank2
test bool blank2() = Blank _ := [Blank] "\t";
test ctrl1
test bool ctrl1() = Ctrl _ := [Ctrl] "\a00";
test ctrl2
test bool ctrl2() = Ctrl _ := [Ctrl] "\a1f";
test ctrl3
test bool ctrl3() = Ctrl c := [Ctrl] "\a7f";
test digit1
test bool digit1() = Digit _ := [Digit] "0";
test hexnumber1
test bool hexnumber1() = HexNumber _ := [HexNumber] "A";
test hexnumber2
test bool hexnumber2() = HexNumber _ := [HexNumber] "F";
test hexnumber3
test bool hexnumber3() = HexNumber _ := [HexNumber] "a";
test hexnumber4
test bool hexnumber4() = HexNumber _ := [HexNumber] "f";
test hexnumber5
test bool hexnumber5() = HexNumber _ := [HexNumber] "0";
test hexnumber6
test bool hexnumber6() = HexNumber _ := [HexNumber] "9";
test hexnumber7
test bool hexnumber7() = HexNumber _ := [HexNumber] "G";
test hexnumber8
test bool hexnumber8() = HexNumber _ := [HexNumber] "g";
test space1
test bool space1() = Space _ := [Space] "\t";
test space2
test bool space2() = Space _ := [Space] "\n";
test space3
test bool space3() = Space _ := [Space] "\a0B";
test space4
test bool space4() = Space _ := [Space] "\a0C";
test space5
test bool space5() = Space _ := [Space] "\r";
test space6
test bool space6() = Space _ := [Space] " ";