• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisiond61fcb2a0433be2b57feed5609aef090f74635e9 (tree)
Time2020-02-11 12:25:39
Authormiyakawataku
Commitermiyakawataku

Log Message

rename PRINTER.printer? to PRINTER.is?

Change Summary

Incremental Difference

diff -r cfeea241eec7 -r d61fcb2a0433 src/main/resources/kink-mods/kink/io/PRINTER.kn
--- a/src/main/resources/kink-mods/kink/io/PRINTER.kn Tue Feb 11 12:21:42 2020 +0900
+++ b/src/main/resources/kink-mods/kink/io/PRINTER.kn Tue Feb 11 12:25:39 2020 +0900
@@ -175,10 +175,10 @@
175175 'newline'
176176 ]
177177
178-## PRINTER.printer?(Val)
178+## PRINTER.is?(Val)
179179 #
180-# PRINTER.printer? returns whether the Val is a printer.
181-:printer? <- {(:Val)
180+# PRINTER.is? returns whether the Val is a printer.
181+:is? <- {(:Val)
182182 Val.var_syms.have_all?(Printer_syms)
183183 }
184184
diff -r cfeea241eec7 -r d61fcb2a0433 src/test/kink/io/PRINTER_test.kn
--- a/src/test/kink/io/PRINTER_test.kn Tue Feb 11 12:21:42 2020 +0900
+++ b/src/test/kink/io/PRINTER_test.kn Tue Feb 11 12:25:39 2020 +0900
@@ -11,15 +11,15 @@
1111
1212 :Wd <- _WORK_DIR_SETUPPER.new('build/test/kink/io/PRINTER_test')
1313
14-# test PRINTER.printer?(Val) {{{1
14+# test PRINTER.is?(Val) {{{1
1515
16-TEST.test('PRINTER.printer?(Printer) is true'){
16+TEST.test('PRINTER.is?(Printer) is true'){
1717 [:Printer :gen_str] = STR_PRINTER.new_pair("\r\n")
18- PRINTER.printer?(Printer) || raise('got false')
18+ PRINTER.is?(Printer) || raise('got false')
1919 }
2020
21-TEST.test('PRINTER.printer?(Non_printer) is false'){
22- PRINTER.printer?(nada) && raise('got true')
21+TEST.test('PRINTER.is?(Non_printer) is false'){
22+ PRINTER.is?(nada) && raise('got true')
2323 }
2424
2525 # }}}1
Show on old repository browser