Skip to content

Commit

Permalink
Rewrote expected output for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrasnoff committed Oct 7, 2024
1 parent 772c971 commit d8c5dcd
Show file tree
Hide file tree
Showing 118 changed files with 117 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>33\n87\n</outStream>"}
{"errors":{"File.kt":[{"interval":{"start":{"line":4,"ch":8},"end":{"line":4,"ch":11}},"message":"The 'var' property is never written to, so it can be declared as 'val'.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>23\n30\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>false\nThere's no Feb 29 this year...\n12\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nIt's a leap year!\n10\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>2, 3, 1\n2, 1, 3\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>1, 3, 2\n1, 3, 2\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>x = 6\n</outStream>"}
{"errors":{"File.kt":[{"interval":{"start":{"line":3,"ch":11},"end":{"line":3,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>6\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>x = 0; PI = 3.14\nincrementX()\nx = 1; PI = 3.14\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>5\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>The perimeter is 14.0\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>5\n3\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>a was 1, but now is 2\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>x = 0; PI = 3.14\nincrementX()\nx = 1; PI = 3.14\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>max of 0 and 42 is 42\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>The perimeter is 14.0\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>max of 0 and 42 is 42\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>a was 1, but now is 2\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>apple\nbanana\nkiwifruit\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>max of 0 and 42 is 42\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>item at 0 is apple\nitem at 1 is banana\nitem at 2 is kiwifruit\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>max of 0 and 42 is 42\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>item at 0 is apple\nitem at 1 is banana\nitem at 2 is kiwifruit\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>apple\nbanana\nkiwifruit\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>One\nGreeting\nLong\nNot a string\nUnknown\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>item at 0 is apple\nitem at 1 is banana\nitem at 2 is kiwifruit\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>fits in range\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>item at 0 is apple\nitem at 1 is banana\nitem at 2 is kiwifruit\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>-1 is out of range\nlist size is out of valid list indices range, too\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>One\nGreeting\nLong\nNot a string\nUnknown\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>12345</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>fits in range\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>13579\n9630</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>-1 is out of range\nlist size is out of valid list indices range, too\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>apple\nbanana\nkiwifruit\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>12345</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>apple is fine too\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>13579\n9630</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>APPLE\nAVOCADO\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>apple\nbanana\nkiwifruit\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>42\n'a' or '7' is not a number\n'a' or 'b' is not a number\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>apple is fine too\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>42\nWrong number format in arg1: 'a'\nWrong number format in arg2: 'b'\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>APPLE\nAVOCADO\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Getting the length of 'Incomprehensibilities'. Result: 21 \nGetting the length of '1000'. Result: Error: The object is not a string \nGetting the length of '[Some]'. Result: Error: The object is not a string \n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>42\n'a' or '7' is not a number\n'a' or 'b' is not a number\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Getting the length of 'Incomprehensibilities'. Result: 21 \nGetting the length of '1000'. Result: Error: The object is not a string \nGetting the length of '[Some]'. Result: Error: The object is not a string \n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>42\nWrong number format in arg1: 'a'\nWrong number format in arg2: 'b'\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Getting the length of 'Incomprehensibilities'. Result: 21 \nGetting the length of ''. Result: Error: The object is not a string \nGetting the length of '1000'. Result: Error: The object is not a string \n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Getting the length of 'Incomprehensibilities'. Result: 21 \nGetting the length of '1000'. Result: Error: The object is not a string \nGetting the length of '[java.lang.Object@433c675d]'. Result: Error: The object is not a string \n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Getting the length of 'Incomprehensibilities'. Result: 21 \nGetting the length of '1000'. Result: Error: The object is not a string \nGetting the length of '[java.lang.Object@433c675d]'. Result: Error: The object is not a string \n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Getting the length of 'Incomprehensibilities'. Result: 21 \nGetting the length of ''. Result: Error: The object is not a string \nGetting the length of '1000'. Result: Error: The object is not a string \n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":11},"end":{"line":2,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>a = 1, b = 2, c = 3\n</outStream>"}
{"errors":{"File.kt":[{"interval":{"start":{"line":3,"ch":11},"end":{"line":3,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>5\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>2\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>1\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{O=[one], T=[two, three], F=[four, five]}\n{o=[ONE], t=[TWO, THREE], f=[FOUR, FIVE]}\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{O=[one], T=[two, three], F=[four, five]}\nKey: O, Values: [one]\nKey: T, Values: [two, three]\nKey: F, Values: [four, five]\n{o=[ONE], t=[TWO, THREE], f=[FOUR, FIVE]}\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{o=1, t=2, f=2, s=1}\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Key: o, Count: 1\nKey: t, Count: 2\nKey: f, Count: 2\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>[three, one, two, four]\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>[two, three, one, four]\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>[4, 5, 0, 3]\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>[5, 3, 0, 4]\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":{"message":"Hi There!","fullName":"java.lang.Exception","stackTrace":[{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":3},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1},{"className":"jdk.internal.reflect.NativeMethodAccessorImpl","methodName":"invoke0","fileName":"NativeMethodAccessorImpl.java","lineNumber":-2}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":""}
{"errors":{"File.kt":[]},"exception":{"message":"Count must be non-negative. You set count to -1.","fullName":"java.lang.IllegalArgumentException","stackTrace":[{"className":"FileKt","methodName":"getIndices","fileName":"File.kt","lineNumber":2},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":8},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":""}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":{"message":"Name required","fullName":"java.lang.IllegalArgumentException","stackTrace":[{"className":"FileKt","methodName":"fail","fileName":"File.kt","lineNumber":4},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":13},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":""}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":{"message":"An operation is not implemented: This function is not yet implemented","fullName":"kotlin.NotImplementedError","stackTrace":[{"className":"FileKt","methodName":"notImplementedFunction","fileName":"File.kt","lineNumber":2},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":6},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":""}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":{"message":"This is an arithmetic exception!","fullName":"java.lang.ArithmeticException","stackTrace":[{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":3},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1},{"className":"jdk.internal.reflect.NativeMethodAccessorImpl","methodName":"invoke0","fileName":"NativeMethodAccessorImpl.java","lineNumber":-2}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":""}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[{"interval":{"start":{"line":12,"ch":4},"end":{"line":12,"ch":13}},"message":"Assigned value is never read.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":16,"ch":4},"end":{"line":16,"ch":13}},"message":"Assigned value is never read.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>non-empty-state\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":{"message":"Undefined role: guest","fullName":"java.lang.IllegalStateException","stackTrace":[{"className":"FileKt","methodName":"processUserRole","fileName":"File.kt","lineNumber":8},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":20},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":"<outStream>Alice is an admin.\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Hello, World!\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Result: -1\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[{"interval":{"start":{"line":20,"ch":43},"end":{"line":20,"ch":53}},"message":"Redundant call of conversion method.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>Caught an InsufficientFundsException: Insufficient funds for the withdrawal.\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>catch block: Encountered ArithmeticException java.lang.ArithmeticException: / by zero\nfinally block: The finally block is always executed\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[{"interval":{"start":{"line":5,"ch":21},"end":{"line":5,"ch":28}},"message":"Division by zero.","severity":"WARNING","className":"WARNING"}]},"exception":{"message":"/ by zero","fullName":"java.lang.ArithmeticException","stackTrace":[{"className":"MockResource","methodName":"use","fileName":"File.kt","lineNumber":6},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":23},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":"<outStream>Resource being used\nResource closed\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":{"message":"Parameter is a non-negative number.","fullName":"NonNegativeNumberException","stackTrace":[{"className":"FileKt","methodName":"myFunction","fileName":"File.kt","lineNumber":6},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":12},{"className":"FileKt","methodName":"main","fileName":"File.kt","lineNumber":-1}],"cause":null,"localizedMessage":null},"jvmByteCode":null,"text":""}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Error: API key expired\nCaused by: API key validation failed due to network error\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>[one, two, three, four]\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>[one, two, four, four]\n[one, two, three, four]\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{https://kotlinlang.org/docs/home.html=[Request(url=https://kotlinlang.org/docs/home.html, responseCode=200), Request(url=https://kotlinlang.org/docs/home.html, responseCode=400)], https://kotlinlang.org/docs/comparison-to-java.html=[Request(url=https://kotlinlang.org/docs/comparison-to-java.html, responseCode=200)]}\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{https://kotlinlang.org/docs/home.html=[Request@1f17ae12, Request@4d405ef7], https://kotlinlang.org/docs/comparison-to-java.html=[Request@6193b845]}\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":31},"end":{"line":2,"ch":35}},"message":"Initializer is redundant.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>0\nnull\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>This map has 3 key-value pairs\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{apple=100, kiwi=190, orange=100, coconut=150}\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{apple=100, kiwi=190, orange=100, coconut=150}\n{apple=100, kiwi=190, coconut=150}\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>{apple=100, kiwi=190}\n</outStream>"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\n</outStream>"}
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>This map has 3 key-value pairs\n</outStream>"}
Loading

0 comments on commit d8c5dcd

Please sign in to comment.