• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revision251db0e0f1a309f7f94bb39071067e28c896e452 (tree)
Time2020-02-11 12:17:55
Authormiyakawataku
Commitermiyakawataku

Log Message

rename OUTPUT.output? to OUTPUT.is?

Change Summary

Incremental Difference

diff -r 6cba034a0fc3 -r 251db0e0f1a3 src/main/resources/kink-mods/kink/io/OUTPUT.kn
--- a/src/main/resources/kink-mods/kink/io/OUTPUT.kn Tue Feb 11 12:15:13 2020 +0900
+++ b/src/main/resources/kink-mods/kink/io/OUTPUT.kn Tue Feb 11 12:17:55 2020 +0900
@@ -183,10 +183,10 @@
183183 'close'
184184 ]
185185
186-## OUTPUT.output?(Val)
186+## OUTPUT.is?(Val)
187187 #
188-# OUTPUT.output? returns whether the Val is an output.
189-:output? <- {(:Val)
188+# OUTPUT.is? returns whether the Val is an output.
189+:is? <- {(:Val)
190190 Val.var_syms.have_all?(Output_syms)
191191 }
192192
diff -r 6cba034a0fc3 -r 251db0e0f1a3 src/main/resources/kink-mods/kink/io/PRINTER.kn
--- a/src/main/resources/kink-mods/kink/io/PRINTER.kn Tue Feb 11 12:15:13 2020 +0900
+++ b/src/main/resources/kink-mods/kink/io/PRINTER.kn Tue Feb 11 12:17:55 2020 +0900
@@ -220,7 +220,7 @@
220220 # stdout.print_line(gen_bin.repr) # => BIN.of(0x66 0x6f 0x6f 0x0d 0x0a)
221221 :wrap <- {(:Output :Encoding_name :Newline :Config_fun.opt)
222222 :Desc = 'PRINTER.wrap(Output Encoding_name Newline ...[$config])'
223- OUTPUT.output?(Output) || raise(
223+ OUTPUT.is?(Output) || raise(
224224 '{}: required output for Output, but got {}'.format(Desc Output.repr))
225225 STR.is?(Encoding_name) && STR.valid_encoding?(Encoding_name) || raise(
226226 '{}: required str of valid encoding name for Encoding_name, but got {}'
diff -r 6cba034a0fc3 -r 251db0e0f1a3 src/test/kink/host_lang/java/JAVA_IO_test.kn
--- a/src/test/kink/host_lang/java/JAVA_IO_test.kn Tue Feb 11 12:15:13 2020 +0900
+++ b/src/test/kink/host_lang/java/JAVA_IO_test.kn Tue Feb 11 12:17:55 2020 +0900
@@ -266,7 +266,7 @@
266266 TEST.test('Stream_output is an output'){
267267 :Baos = ByteArrayOutputStream_class.new([])
268268 :Out = JAVA_IO.output_of_output_stream(Baos)
269- OUTPUT.output?(Out) || raise('got false')
269+ OUTPUT.is?(Out) || raise('got false')
270270 }
271271
272272 TEST.group('write_byte'){ # {{{2
diff -r 6cba034a0fc3 -r 251db0e0f1a3 src/test/kink/io/OUTPUT_test.kn
--- a/src/test/kink/io/OUTPUT_test.kn Tue Feb 11 12:15:13 2020 +0900
+++ b/src/test/kink/io/OUTPUT_test.kn Tue Feb 11 12:17:55 2020 +0900
@@ -6,15 +6,15 @@
66
77 :TEST.require_from('kink/test/')
88
9-# test OUTPUT.output?(Val) {{{1
9+# test OUTPUT.is?(Val) {{{1
1010
11-TEST.test('OUTPUT.output?(Bin_output) is true'){
11+TEST.test('OUTPUT.is?(Bin_output) is true'){
1212 [:Output :gen_bin] = BIN_OUTPUT.new_pair
13- OUTPUT.output?(Output) || raise('got false')
13+ OUTPUT.is?(Output) || raise('got false')
1414 }
1515
16-TEST.test('OUTPUT.output?(Non_bin_output) is true'){
17- OUTPUT.output?(nada) && raise('got true')
16+TEST.test('OUTPUT.is?(Non_bin_output) is true'){
17+ OUTPUT.is?(nada) && raise('got true')
1818 }
1919
2020 # }}}1
Show on old repository browser