Package com._1c.g5.v8.dt.bsl
Class NumberLiteralValidatorTest
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
-
- com._1c.g5.v8.dt.bsl.NumberLiteralValidatorTest
-
@InjectWith(BslInjectorProvider.class) public class NumberLiteralValidatorTest extends SimpleTestBslParseHelper
Tests for validation of Number literals in Bsl language
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
parser, resourceSet, resourceSetProvider
-
-
Constructor Summary
Constructors Constructor Description NumberLiteralValidatorTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidsetUp()voidtestAllowedNumberLiteral1()Allowed "111"voidtestAllowedNumberLiteral2()Allowed "111.1"voidtestWrongNumberLiteral1()not allowed "11 1"voidtestWrongNumberLiteral10()Not allowed "((1)"voidtestWrongNumberLiteral11()Allowed "( 53 )"voidtestWrongNumberLiteral12()Allowed "Сообщить(1,// пыввапвапвап // пыввапвапвап 1222, 1)"voidtestWrongNumberLiteral2()not allowed ".111"voidtestWrongNumberLiteral3()Allowed "111."voidtestWrongNumberLiteral4()not allowed "111 .1"voidtestWrongNumberLiteral5()not allowed "111.voidtestWrongNumberLiteral6()not allowed "111.1 1"voidtestWrongNumberLiteral7()not allowed "1 11.11"voidtestWrongNumberLiteral8()Allowed "0."voidtestWrongNumberLiteral9()Allowed "(1)"-
Methods inherited from class com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
getModuleLineDelimeter, getTextFromFile, parseFile
-
-
-
-
Method Detail
-
setUp
public static void setUp()
-
testAllowedNumberLiteral1
public void testAllowedNumberLiteral1() throws ExceptionAllowed "111"- Throws:
Exception
-
testAllowedNumberLiteral2
public void testAllowedNumberLiteral2() throws ExceptionAllowed "111.1"- Throws:
Exception
-
testWrongNumberLiteral1
public void testWrongNumberLiteral1() throws Exceptionnot allowed "11 1"- Throws:
Exception
-
testWrongNumberLiteral2
public void testWrongNumberLiteral2() throws Exceptionnot allowed ".111"- Throws:
Exception
-
testWrongNumberLiteral3
public void testWrongNumberLiteral3() throws ExceptionAllowed "111."- Throws:
Exception
-
testWrongNumberLiteral4
public void testWrongNumberLiteral4() throws Exceptionnot allowed "111 .1"- Throws:
Exception
-
testWrongNumberLiteral5
public void testWrongNumberLiteral5() throws Exceptionnot allowed "111. 1"- Throws:
Exception
-
testWrongNumberLiteral6
public void testWrongNumberLiteral6() throws Exceptionnot allowed "111.1 1"- Throws:
Exception
-
testWrongNumberLiteral7
public void testWrongNumberLiteral7() throws Exceptionnot allowed "1 11.11"- Throws:
Exception
-
testWrongNumberLiteral8
public void testWrongNumberLiteral8() throws ExceptionAllowed "0."- Throws:
Exception
-
testWrongNumberLiteral9
public void testWrongNumberLiteral9() throws ExceptionAllowed "(1)"- Throws:
Exception
-
testWrongNumberLiteral10
public void testWrongNumberLiteral10() throws ExceptionNot allowed "((1)"- Throws:
Exception
-
testWrongNumberLiteral11
public void testWrongNumberLiteral11() throws ExceptionAllowed "( 53 )"- Throws:
Exception
-
-