mjtest-tests merge requestshttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests2021-11-04T14:47:47+01:00https://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/25Add 3 valid and 3 invalid parser tests2021-11-04T14:47:47+01:00uyunxAdd 3 valid and 3 invalid parser tests1. C Style Arrays: Arrays must be `<Type>[] varName`. The c style declaration that is allowed in Java is not allowed in MiniJava.
2. Hello World: Valid MJ program that outputs `Hello World` when run.
3. Inner classes: Inner classes are n...1. C Style Arrays: Arrays must be `<Type>[] varName`. The c style declaration that is allowed in Java is not allowed in MiniJava.
2. Hello World: Valid MJ program that outputs `Hello World` when run.
3. Inner classes: Inner classes are not allowed in MiniJava.
4. Receiver Parameter: An explicit receiver parameter is allowed in Java, but not in MJ.
5. Special Method: `System.out.println()` is a special method, that is not allowed to be called in MJ, but should be parsed correctly.
6. Wild Syntax: A few lines of code that is valid MJ code (but cannot be compiled with javac doe to unreachable code).uxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/30Add an assortment of semantic tests2021-11-21T00:10:28+01:00uxrogAdd an assortment of semantic tests- Some tests regarding lvalues
- Longer semantically correct tests
- Unlambda interpreter
- Conway's Game of Life
- Brainfuck interpreter- Some tests regarding lvalues
- Longer semantically correct tests
- Unlambda interpreter
- Conway's Game of Life
- Brainfuck interpreteruxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/4add basic lexer tests2021-10-28T18:42:53+02:00uqdwqadd basic lexer testsBasic lexer tests from group 2Basic lexer tests from group 2uxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/54Add broken tests2022-01-18T22:56:48+01:00uxwluAdd broken testsAdd tests that broke our poor little compiler *today*Add tests that broke our poor little compiler *today*https://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/17Add cow-based tests2021-10-30T01:29:47+02:00uzuueAdd cow-based testsMooMoohttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/6Add haskell and dollar identifier2021-10-28T18:44:34+02:00uxwluAdd haskell and dollar identifier1) It is fun to see how much of a different language you can embed and they tend to order tokens differently enough that you might not expect it (e.g. `<*>` or `::`)
2) This revealed a part in our lexer where we were too permissive1) It is fun to see how much of a different language you can embed and they tend to order tokens differently enough that you might not expect it (e.g. `<*>` or `::`)
2) This revealed a part in our lexer where we were too permissiveuxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/44Add negative integer literals in precarious situations2021-11-29T15:24:19+01:00uzuueAdd negative integer literals in precarious situationsAnd a few non-negative negated expressions as wellAnd a few non-negative negated expressions as welluxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/60Add quine test2022-01-31T20:24:27+01:00uzuueAdd quine testhttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/29Add some semantic tests2021-11-16T16:07:28+01:00uzuueAdd some semantic tests- [x] Expressions with side effects
- [x] A few more complex valid programs (multiple classes, multiple functions, ...)- [x] Expressions with side effects
- [x] A few more complex valid programs (multiple classes, multiple functions, ...)https://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/52Add some tests for register transfer graphs2022-01-13T02:39:31+01:00uxwluAdd some tests for register transfer graphshttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/22Add some unary operator tests2021-11-04T16:40:11+01:00uxwluAdd some unary operator testsuxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/5Add super simple test cases for lexer2021-10-28T18:43:37+02:00uyunxAdd super simple test cases for lexer1. Almost Keywords: Keywords with an extra trailing character, resulting in identifiers
2. Integer Literal with leading zero: Must fail according to spec
3. Uppercase Keywords: Keywords must be lexed case-sensitive
4. Waffelrezept: (slig...1. Almost Keywords: Keywords with an extra trailing character, resulting in identifiers
2. Integer Literal with leading zero: Must fail according to spec
3. Uppercase Keywords: Keywords must be lexed case-sensitive
4. Waffelrezept: (slightly modified from https://www.chefkoch.de/rezepte/662351168076093/Geheimes-Waffelrezept.html)
5. Wild Whitespaces: A bit code in a mix of whitespacesuxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/41Add syntax test for unclosed comment2021-11-22T14:58:03+01:00uzuueAdd syntax test for unclosed commentSüßigkeiten für alle!Süßigkeiten für alle!https://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/59Add test case for illegal assignment in array index2022-01-26T20:29:32+01:00uxwluAdd test case for illegal assignment in array indexhttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/66Add test case for return in nested block2022-02-08T14:10:10+01:00uudyhAdd test case for return in nested blockhttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/56Add test case for unreachable return2022-01-26T20:30:03+01:00uudyhAdd test case for unreachable returnhttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/13Add test for a large integer literal (1401 digits)2021-10-30T00:29:43+02:00uxwluAdd test for a large integer literal (1401 digits)See: https://ilias.studium.kit.edu/goto.php?target=frm_1631180_215091See: https://ilias.studium.kit.edu/goto.php?target=frm_1631180_215091https://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/55Add test for correct handling of Unknown: assignment within condition2022-01-23T21:19:46+01:00uudyhAdd test for correct handling of Unknown: assignment within conditionhttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/53Add test for division edge cases2022-01-17T14:49:35+01:00uyunxAdd test for division edge casesuxroguxroghttps://git.scc.kit.edu/IPDSnelting/mjtest-tests/-/merge_requests/21Add test for multi dimensional arrays2021-11-04T14:46:49+01:00uxwluAdd test for multi dimensional arraysuxroguxrog