• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisiond3577cb52f8950179b4b77278c2dc87b4962fdb0 (tree)
Time2020-02-08 15:08:21
Authormiyakawataku
Commitermiyakawataku

Log Message

rename TRACE.trace? to TRACE.is?

Change Summary

Incremental Difference

diff -r 6245902eb33b -r d3577cb52f89 src/main/resources/kink-mods/kink/TRACE.kn
--- a/src/main/resources/kink-mods/kink/TRACE.kn Sat Feb 08 15:02:46 2020 +0900
+++ b/src/main/resources/kink-mods/kink/TRACE.kn Sat Feb 08 15:08:21 2020 +0900
@@ -99,10 +99,10 @@
9999 'desc'
100100 ]
101101
102-## TRACE.trace?(Val)
102+## TRACE.is?(Val)
103103 #
104-# TRACE.trace? returns whether the Val is a trace val.
105-:trace? <- {(:Val)
104+# TRACE.is? returns whether the Val is a trace val.
105+:is? <- {(:Val)
106106 JAVA.wrap(Val).typable_as?(TraceVal_class)
107107 }
108108
diff -r 6245902eb33b -r d3577cb52f89 src/test/kink/EVALUATOR_test.kn
--- a/src/test/kink/EVALUATOR_test.kn Sat Feb 08 15:02:46 2020 +0900
+++ b/src/test/kink/EVALUATOR_test.kn Sat Feb 08 15:08:21 2020 +0900
@@ -25,7 +25,7 @@
2525 Msg == 'boo' || raise('got {}'.format(Msg.repr))
2626 VEC.vec?(Traces) || raise('got {}'.format(Traces.repr))
2727 Traces.each{(:T)
28- TRACE.trace?(T) || raise('got {}'.format(T.repr))
28+ TRACE.is?(T) || raise('got {}'.format(T.repr))
2929 }
3030 }
3131
diff -r 6245902eb33b -r d3577cb52f89 src/test/kink/TRACE_test.kn
--- a/src/test/kink/TRACE_test.kn Sat Feb 08 15:02:46 2020 +0900
+++ b/src/test/kink/TRACE_test.kn Sat Feb 08 15:08:21 2020 +0900
@@ -8,14 +8,15 @@
88
99 :TEST.require_from('kink/test/')
1010
11-# test TRACE.trace?(Val) {{{1
1211
13-TEST.test('TRACE.trace?(Val): true'){
14- TRACE.trace?(TRACE.snip) || raise('got false')
15-}
12+TEST.group('TRACE.is?'){ # {{{1
13+ TEST.test('true for trace'){
14+ TRACE.is?(TRACE.snip) || raise('got false')
15+ }
1616
17-TEST.test('TRACE.trace?(Val): false'){
18- TRACE.trace?(TRACE.snip) || raise('got true')
17+ TEST.test('false for nada'){
18+ TRACE.is?(nada) && raise('got true')
19+ }
1920 }
2021
2122 # }}}1
diff -r 6245902eb33b -r d3577cb52f89 src/test/kink/host_lang/java/JAVA_EXCEPTION_test.kn
--- a/src/test/kink/host_lang/java/JAVA_EXCEPTION_test.kn Sat Feb 08 15:02:46 2020 +0900
+++ b/src/test/kink/host_lang/java/JAVA_EXCEPTION_test.kn Sat Feb 08 15:08:21 2020 +0900
@@ -56,7 +56,7 @@
5656 TEST.test('returns a vec of traces'){
5757 :Exc = RuntimeException_class.new([JAVA.string('boo!')])
5858 :Traces = JAVA_EXCEPTION.traces_from_throwable(Exc)
59- VEC.vec?(Traces) && Traces.for_all?{(:T) TRACE.trace?(T) }
59+ VEC.vec?(Traces) && Traces.for_all?{(:T) TRACE.is?(T) }
6060 || raise('got {}'.format(Traces.repr))
6161 }
6262
Show on old repository browser