• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revision9d5c510b65002fc1d147b7030b7b4c46dce29111 (tree)
Time2020-02-12 20:31:13
Authormiyakawataku
Commitermiyakawataku

Log Message

fix test code

Change Summary

Incremental Difference

diff -r d61fcb2a0433 -r 9d5c510b6500 src/test/java/org/kink_lang/kink/CoreModTest.java
--- a/src/test/java/org/kink_lang/kink/CoreModTest.java Tue Feb 11 12:25:39 2020 +0900
+++ b/src/test/java/org/kink_lang/kink/CoreModTest.java Wed Feb 12 20:31:13 2020 +0900
@@ -591,7 +591,7 @@
591591 public void test_core_stdin() {
592592 Val result = vm.run(
593593 c -> c.call("kink/CORE", vm.sym.getHandle("stdin")).on((cc, stdin) ->
594- cc.call("kink/io/SCANNER", vm.sym.getHandle("scanner?")).args(stdin)),
594+ cc.call("kink/io/SCANNER", vm.sym.getHandle("is?")).args(stdin)),
595595 v -> v, (msg, traces) -> { throw new AssertionError(msg); });
596596 assertThat(result).isEqualTo(vm.bool.trueVal);
597597 }
@@ -600,7 +600,7 @@
600600 public void test_core_stdout() {
601601 Val result = vm.run(
602602 c -> c.call("kink/CORE", vm.sym.getHandle("stdout")).on((cc, stdout) ->
603- cc.call("kink/io/PRINTER", vm.sym.getHandle("printer?")).args(stdout)),
603+ cc.call("kink/io/PRINTER", vm.sym.getHandle("is?")).args(stdout)),
604604 v -> v, (msg, traces) -> { throw new AssertionError(msg); });
605605 assertThat(result).isEqualTo(vm.bool.trueVal);
606606 }
@@ -609,7 +609,7 @@
609609 public void test_core_stderr() {
610610 Val result = vm.run(
611611 c -> c.call("kink/CORE", vm.sym.getHandle("stderr")).on((cc, stderr) ->
612- cc.call("kink/io/PRINTER", vm.sym.getHandle("printer?")).args(stderr)),
612+ cc.call("kink/io/PRINTER", vm.sym.getHandle("is?")).args(stderr)),
613613 v -> v, (msg, traces) -> { throw new AssertionError(msg); });
614614 assertThat(result).isEqualTo(vm.bool.trueVal);
615615 }
Show on old repository browser