Skip to content

Commit

Permalink
Merge pull request #1443 from SeasideSt/alternate-test-pr1442
Browse files Browse the repository at this point in the history
Add test for GsDevKit/Grease issue 33
  • Loading branch information
jbrichau authored Aug 19, 2024
2 parents f0dc0e9 + c3237af commit 0f7d6f7
Showing 1 changed file with 7 additions and 1 deletion.
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"'
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 asString = '"OK"'

0 comments on commit 0f7d6f7

Please sign in to comment.