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 void
setUp()
void
testAllowedNumberLiteral1()
Allowed "111"void
testAllowedNumberLiteral2()
Allowed "111.1"void
testWrongNumberLiteral1()
not allowed "11 1"void
testWrongNumberLiteral10()
Not allowed "((1)"void
testWrongNumberLiteral11()
Allowed "( 53 )"void
testWrongNumberLiteral12()
Allowed "Сообщить(1,// пыввапвапвап // пыввапвапвап 1222, 1)"void
testWrongNumberLiteral2()
not allowed ".111"void
testWrongNumberLiteral3()
Allowed "111."void
testWrongNumberLiteral4()
not allowed "111 .1"void
testWrongNumberLiteral5()
not allowed "111.void
testWrongNumberLiteral6()
not allowed "111.1 1"void
testWrongNumberLiteral7()
not allowed "1 11.11"void
testWrongNumberLiteral8()
Allowed "0."void
testWrongNumberLiteral9()
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 Exception
Allowed "111"- Throws:
Exception
-
testAllowedNumberLiteral2
public void testAllowedNumberLiteral2() throws Exception
Allowed "111.1"- Throws:
Exception
-
testWrongNumberLiteral1
public void testWrongNumberLiteral1() throws Exception
not allowed "11 1"- Throws:
Exception
-
testWrongNumberLiteral2
public void testWrongNumberLiteral2() throws Exception
not allowed ".111"- Throws:
Exception
-
testWrongNumberLiteral3
public void testWrongNumberLiteral3() throws Exception
Allowed "111."- Throws:
Exception
-
testWrongNumberLiteral4
public void testWrongNumberLiteral4() throws Exception
not allowed "111 .1"- Throws:
Exception
-
testWrongNumberLiteral5
public void testWrongNumberLiteral5() throws Exception
not allowed "111. 1"- Throws:
Exception
-
testWrongNumberLiteral6
public void testWrongNumberLiteral6() throws Exception
not allowed "111.1 1"- Throws:
Exception
-
testWrongNumberLiteral7
public void testWrongNumberLiteral7() throws Exception
not allowed "1 11.11"- Throws:
Exception
-
testWrongNumberLiteral8
public void testWrongNumberLiteral8() throws Exception
Allowed "0."- Throws:
Exception
-
testWrongNumberLiteral9
public void testWrongNumberLiteral9() throws Exception
Allowed "(1)"- Throws:
Exception
-
testWrongNumberLiteral10
public void testWrongNumberLiteral10() throws Exception
Not allowed "((1)"- Throws:
Exception
-
testWrongNumberLiteral11
public void testWrongNumberLiteral11() throws Exception
Allowed "( 53 )"- Throws:
Exception
-
-