Skip to content

Commit

Permalink
Add test for GsDevKit/Grease issue 33
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Brichau committed Aug 19, 2024
1 parent f0dc0e9 commit 34ad0c4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ testCodecStream
actual := String streamContents: [ :stream |
(GRNullCodec new encoderFor: stream)
javascript: 'OK' ].
self assert: actual = '"OK"'.

"The second part of this test is in response to https://github.com/GsDevKit/Grease/issues/33"
actual := (GRCodec forEncoding: 'utf8') encodedStringClass streamContents: [ :stream |
((GRCodec forEncoding: 'utf8') encoderFor: stream)
javascript: 'OK' ].
self assert: actual = '"OK"'

0 comments on commit 34ad0c4

Please sign in to comment.