Lines Matching defs:input
20 * Check that the input parser is correct on a given input.
23 String input, boolean isInputValid, ByteBuffer expectedData, int expectedHandlesCount) {
24 ValidationTestUtil.Data data = ValidationTestUtil.parseData(input);
41 // Test empty input.
42 String input = "";
46 checkInputParser(input, true, expected, 0);
49 // Test input that only consists of comments and whitespaces.
50 String input = " \t // hello world \n\r \t// the answer is 42 ";
54 checkInputParser(input, true, expected, 0);
57 String input = "[u1]0x10// hello world !! \n\r \t [u2]65535 \n" +
69 checkInputParser(input, true, expected, 0);
72 String input = "[s8]-0x800 [s1]-128\t[s2]+0 [s4]-40";
81 checkInputParser(input, true, expected, 0);
84 String input = "[b]00001011 [b]10000000 // hello world\r [b]00000000";
92 checkInputParser(input, true, expected, 0);
95 String input = "[f]+.3e9 [d]-10.03";
102 checkInputParser(input, true, expected, 0);
105 String input = "[dist4]foo 0 [dist8]bar 0 [anchr]foo [anchr]bar";
114 checkInputParser(input, true, expected, 0);
117 String input = "// This message has handles! \n[handles]50 [u8]2";
123 checkInputParser(input, true, expected, 50);
143 for (String input : error_inputs) {
146 checkInputParser(input, false, expected, 0);