Skip to content

Commit cd29c73

Browse files
author
james.j.tolton@toltontechnology.ai
committed
char_stream -> chars_to_stream
mthom#2968 (comment)
1 parent ed58f7e commit cd29c73

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/lib/charsio.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
read_term_from_chars/3,
1616
write_term_to_chars/3,
1717
chars_base64/3,
18-
char_stream/1,
19-
char_stream/2,
20-
char_stream/3,
18+
chars_to_stream/1,
19+
chars_to_stream/2,
20+
chars_to_stream/3,
2121
put_chars/2]).
2222

2323
:- use_module(library(dcgs)).

src/tests/charsio.pl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
test("can create string char stream",
11-
( char_stream(Stream),
11+
( chars_to_stream(Stream),
1212
put_char(Stream, a),
1313
get_char(Stream, C),
1414
C=a
@@ -17,7 +17,7 @@
1717

1818
test("can spell simple word with char stream",
1919
(
20-
char_stream(Stream),
20+
chars_to_stream(Stream),
2121
put_char(Stream, c),
2222
put_char(Stream, a),
2323
put_char(Stream, t),
@@ -27,7 +27,7 @@
2727

2828
test("can read from and write to char stream",
2929
(
30-
char_stream(Stream),
30+
chars_to_stream(Stream),
3131
put_char(Stream, c),
3232
put_char(Stream, a),
3333
get_char(Stream, _C),
@@ -42,7 +42,7 @@
4242
(
4343
Phrase="can convert string to char stream",
4444
length(Phrase, N),
45-
char_stream(Phrase, Stream),
45+
chars_to_stream(Phrase, Stream),
4646
get_n_chars(Stream, N, Chars),
4747
Phrase=Chars
4848
)
@@ -52,7 +52,7 @@
5252
(
5353
Phrase="can convert string to char stream",
5454
length(Phrase, N),
55-
char_stream(Phrase, Stream, []),
55+
chars_to_stream(Phrase, Stream, []),
5656
get_n_chars(Stream, N, Chars),
5757
Phrase=Chars
5858
)).

0 commit comments

Comments
 (0)