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.SimpleTestBslParseHelperparser, resourceSet, resourceSetProvider
 
- 
 - 
Constructor SummaryConstructors Constructor Description NumberLiteralValidatorTest()
 - 
Method SummaryAll 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.SimpleTestBslParseHelpergetModuleLineDelimeter, getTextFromFile, parseFile
 
- 
 
- 
- 
- 
Method Detail- 
setUppublic static void setUp() 
 - 
testAllowedNumberLiteral1public void testAllowedNumberLiteral1() throws ExceptionAllowed "111"- Throws:
- Exception
 
 - 
testAllowedNumberLiteral2public void testAllowedNumberLiteral2() throws ExceptionAllowed "111.1"- Throws:
- Exception
 
 - 
testWrongNumberLiteral1public void testWrongNumberLiteral1() throws Exceptionnot allowed "11 1"- Throws:
- Exception
 
 - 
testWrongNumberLiteral2public void testWrongNumberLiteral2() throws Exceptionnot allowed ".111"- Throws:
- Exception
 
 - 
testWrongNumberLiteral3public void testWrongNumberLiteral3() throws ExceptionAllowed "111."- Throws:
- Exception
 
 - 
testWrongNumberLiteral4public void testWrongNumberLiteral4() throws Exceptionnot allowed "111 .1"- Throws:
- Exception
 
 - 
testWrongNumberLiteral5public void testWrongNumberLiteral5() throws Exceptionnot allowed "111. 1"- Throws:
- Exception
 
 - 
testWrongNumberLiteral6public void testWrongNumberLiteral6() throws Exceptionnot allowed "111.1 1"- Throws:
- Exception
 
 - 
testWrongNumberLiteral7public void testWrongNumberLiteral7() throws Exceptionnot allowed "1 11.11"- Throws:
- Exception
 
 - 
testWrongNumberLiteral8public void testWrongNumberLiteral8() throws ExceptionAllowed "0."- Throws:
- Exception
 
 - 
testWrongNumberLiteral9public void testWrongNumberLiteral9() throws ExceptionAllowed "(1)"- Throws:
- Exception
 
 - 
testWrongNumberLiteral10public void testWrongNumberLiteral10() throws ExceptionNot allowed "((1)"- Throws:
- Exception
 
 - 
testWrongNumberLiteral11public void testWrongNumberLiteral11() throws ExceptionAllowed "( 53 )"- Throws:
- Exception
 
 
- 
 
-