Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "C:\Program Files\Java\jdk1.8.0_101\bin\java" -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_101\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_101\jre\lib\rt.jar;C:\Users\Emeric G\IdeaProjects\CCalc0\out\production\TestCCalc;C:\Users\Emeric G\IdeaProjects\CCalc0\out\production\CCalc0;C:\Users\Emeric G\Documents\Cours\Mines\jars\antlr-runtime-4.6.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.2\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain test.TestGreen
- ==== test/green1.calc: number, attendu : 1234567890
- (expression 1234567890)
- writing C code to test/green1.c
- SUCCESS
- ==== test/green2.calc: addition, attendu : 2
- (expression (expression 0) + (expression 2))
- writing C code to test/green2.c
- SUCCESS
- ==== test/green3.calc: arithmetic expression with priority, attendu : 7
- (expression (expression 1) + (expression (expression 2) * (expression 3)))
- writing C code to test/green3.c
- SUCCESS
- ==== test/green4.calc: unary minus, attendu : -4
- (expression - (expression 4))
- writing C code to test/green4.c
- SUCCESS
- ==== test/green5.calc: boolean, attendu : 0
- (expression false)
- writing C code to test/green5.c
- ==== test/green6.calc: boolean expression, attendu : 1
- C code does not compile
- (expression (expression ! (expression false)) && (expression true))
- writing C code to test/green6.c
- ==== Unexpected exception
- java.util.NoSuchElementException: No line found
- at java.util.Scanner.nextLine(Scanner.java:1540)
- at test.Test.display(Test.java:134)
- at test.Test.test(Test.java:71)
- at test.TestGreen.main(TestGreen.java:16)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- ==== test/green7.calc: boolean expression with priority, attendu : 1
- (expression (expression (expression true) || (expression true)) && (expression false))
- writing C code to test/green7.c
- ==== test/green8.calc: boolean expression with explicit priority, attendu : 0
- ==== Unexpected exception
- java.util.NoSuchElementException: No line found
- at java.util.Scanner.nextLine(Scanner.java:1540)
- at test.Test.display(Test.java:134)
- at test.Test.test(Test.java:71)
- at test.TestGreen.main(TestGreen.java:17)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- (expression (expression ( (expression (expression true) || (expression true)) )) && (expression false))
- writing C code to test/green8.c
- ==== test/green9.calc: unary not, attendu : 1
- (expression ! (expression false))
- writing C code to test/green9.c
- ==== Unexpected exception
- java.util.NoSuchElementException: No line found
- at java.util.Scanner.nextLine(Scanner.java:1540)
- at test.Test.display(Test.java:134)
- at test.Test.test(Test.java:71)
- at test.TestGreen.main(TestGreen.java:18)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- ==== test/green10.calc: conditional, attendu : 12
- ==== Unexpected exception
- (expression (expression true) ? (expression 12) : (expression 21))
- java.util.NoSuchElementException: No line found
- at java.util.Scanner.nextLine(Scanner.java:1540)
- at test.Test.display(Test.java:134)
- at test.Test.test(Test.java:71)
- at test.TestGreen.main(TestGreen.java:19)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- writing C code to test/green10.c
- ==== Unexpected exception
- java.util.NoSuchElementException: No line found
- at java.util.Scanner.nextLine(Scanner.java:1540)
- at test.Test.display(Test.java:134)
- at test.Test.test(Test.java:71)
- at test.TestGreen.main(TestGreen.java:20)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- ==== test/green11.calc: conditional, attendu : 21
- (expression (expression (expression 12) == (expression 21)) ? (expression 12) : (expression 21))
- writing C code to test/green11.c
- SUCCESS
- ==== test/green12.calc: comparison, attendu : 1
- (expression (expression 12) < (expression 21))
- writing C code to test/green12.c
- SUCCESS
- ==== test/green13.calc: nested conditionals, attendu : 2
- (expression (expression (expression 21) > (expression 12)) ? (expression (expression (expression 12) == (expression 21)) ? (expression 1) : (expression 2)) : (expression 3))
- writing C code to test/green13.c
- SUCCESS
- ==== test/green14.calc: unequality, attendu : 1
- (expression (expression 1) != (expression 0))
- writing C code to test/green14.c
- SUCCESS
- ==== test/green15.calc: equality, attendu : 0
- (expression (expression true) == (expression false))
- writing C code to test/green15.c
- ==== test/green16.calc: equality, attendu : error
- ==== Unexpected exception
- (expression (expression 1) == (expression true))
- java.util.NoSuchElementException: No line found
- at java.util.Scanner.nextLine(Scanner.java:1540)
- at test.Test.display(Test.java:134)
- at test.Test.test(Test.java:71)
- at test.TestGreen.main(TestGreen.java:25)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- ==== Exception in compiler
- ast.SemanticError: Semantic error
- at ccalc.CCalc.main(CCalc.java:55)
- at test.Test.test(Test.java:54)
- at test.TestGreen.main(TestGreen.java:26)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- ==== test/green17.calc: nested divisisons, attendu : 1
- (expression (expression (expression 8) / (expression 4)) / (expression 2))
- writing C code to test/green17.c
- SUCCESS
- ==== test/green18.calc: minus mix, attendu : 2
- (expression (expression - (expression 2)) - (expression ( (expression - (expression 4)) )))
- writing C code to test/green18.c
- SUCCESS
- ==== test/green19.calc: parenthesized number, attendu : 2
- (expression ( (expression 2) ))
- writing C code to test/green19.c
- ==== Exception in compiler
- ast.SemanticError: Semantic error
- at ccalc.CCalc.main(CCalc.java:55)
- at test.Test.test(Test.java:54)
- at test.TestGreen.main(TestGreen.java:30)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- line 1:0 token recognition error at: 'O'
- line 3:0 no viable alternative at input '<EOF>'
- ==== Exception in compiler
- parser.SyntaxError
- at ccalc.CCalc.main(CCalc.java:59)
- at test.Test.test(Test.java:54)
- at test.TestGreen.main(TestGreen.java:31)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- line 1:1 extraneous input '1' expecting {<EOF>, '?', '-', '+', '*', '/', COMPAR, EQUALITY, BOOLOP}
- ==== Exception in compiler
- parser.SyntaxError
- at ccalc.CCalc.main(CCalc.java:59)
- at test.Test.test(Test.java:54)
- at test.TestGreen.main(TestGreen.java:32)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- SUCCESS
- ==== test/green20.calc: erroneous expression, attendu : error
- (expression (expression true) + (expression false))
- ==== test/green21.calc: garbage, attendu : error
- expression
- ==== test/green22.calc: garbage, attendu : error
- (expression 0 1)
- ==== test/green23.calc: erroneous conditional, attendu : error
- (expression true : 1 ? 0)
- line 1:5 mismatched input ':' expecting {<EOF>, '?', '-', '+', '*', '/', COMPAR, EQUALITY, BOOLOP}
- ==== test/green24.calc: erroneous conditional/garbage, attendu : error
- (expression (expression true) ? (expression 1) : (expression (expression 0) ? (expression 2)))
- ==== Exception in compiler
- parser.SyntaxError
- at ccalc.CCalc.main(CCalc.java:59)
- ==== test/green27.calc: erroneous number, attendu : error
- at test.Test.test(Test.java:54)
- at test.TestGreen.main(TestGreen.java:33)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- line 2:0 mismatched input '<EOF>' expecting ':'
- ==== Exception in compiler
- parser.SyntaxError
- at ccalc.CCalc.main(CCalc.java:59)
- at test.Test.test(Test.java:54)
- at test.TestGreen.main(TestGreen.java:34)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- (expression + 2)
- line 1:0 extraneous input '+' expecting {'(', LITERAL, BOOL, '-', '!'}
- 18 successful tests out of 25
- ==== Exception in compiler
- parser.SyntaxError
- at ccalc.CCalc.main(CCalc.java:59)
- at test.Test.test(Test.java:54)
- at test.TestGreen.main(TestGreen.java:37)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
- Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement