-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expand test steps for Base64 libraries for coverage and benchmarking
- Loading branch information
Showing
21 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...nt/test-and-train/elm-interactive-scenarios-kernel/elm-bytes/steps/451/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Nothing |
1 change: 1 addition & 0 deletions
1
implement/test-and-train/elm-interactive-scenarios-kernel/elm-bytes/steps/451/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Bytes.Decode.decode (Bytes.Decode.string 8) (Bytes.Encode.encode (Bytes.Encode.string "testing")) |
25 changes: 25 additions & 0 deletions
25
...nteractive-scenarios-train/elm-compiler-dependencies/context-app/test-src/DecodeExtra.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module DecodeExtra exposing (..) | ||
|
||
import Bytes.Decode | ||
|
||
|
||
list : Int -> Bytes.Decode.Decoder a -> Bytes.Decode.Decoder (List a) | ||
list length aDecoder = | ||
Bytes.Decode.loop | ||
( length, [] ) | ||
(listStep aDecoder) | ||
|
||
|
||
listStep : | ||
Bytes.Decode.Decoder a | ||
-> ( Int, List a ) | ||
-> Bytes.Decode.Decoder (Bytes.Decode.Step ( Int, List a ) (List a)) | ||
listStep elementDecoder ( n, elements ) = | ||
if n <= 0 then | ||
Bytes.Decode.succeed | ||
(Bytes.Decode.Done (List.reverse elements)) | ||
|
||
else | ||
Bytes.Decode.map | ||
(\element -> Bytes.Decode.Loop ( n - 1, element :: elements )) | ||
elementDecoder |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/115/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just "UkZDIDQ2NDg=" |
1 change: 1 addition & 0 deletions
1
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/115/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Base64.fromString "RFC 4648" |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/118/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just "QXMgd2l0aCBhbGwgYmluYXJ5LXRvLXRleHQgZW5jb2Rpbmcgc2NoZW1lcywgQmFzZTY0IGlzIGRlc2lnbmVkIHRvIGNhcnJ5IGRhdGEgc3RvcmVkIGluIGJpbmFyeSBmb3JtYXRzIGFjcm9zcyBjaGFubmVscyB0aGF0IG9ubHkgcmVsaWFibHkgc3VwcG9ydCB0ZXh0IGNvbnRlbnQuIEJhc2U2NCBpcyBwYXJ0aWN1bGFybHkgcHJldmFsZW50IG9uIHRoZSBXb3JsZCBXaWRlIFdlYiB3aGVyZSBvbmUgb2YgaXRzIHVzZXMgaXMgdGhlIGFiaWxpdHkgdG8gZW1iZWQgaW1hZ2UgZmlsZXMgb3Igb3RoZXIgYmluYXJ5IGFzc2V0cyBpbnNpZGUgdGV4dHVhbCBhc3NldHMgc3VjaCBhcyBIVE1MIGFuZCBDU1MgZmlsZXMu" |
1 change: 1 addition & 0 deletions
1
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/118/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Base64.fromString "As with all binary-to-text encoding schemes, Base64 is designed to carry data stored in binary formats across channels that only reliably support text content. Base64 is particularly prevalent on the World Wide Web where one of its uses is the ability to embed image files or other binary assets inside textual assets such as HTML and CSS files." |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/148/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just "Base64 is a group of binary-to-text encoding schemes that transforms binary data into a sequence of printable characters, limited to a set of 64 unique characters. More specifically, the source binary data is taken 6 bits at a time, then this group of 6 bits is mapped to one of 64 unique characters." |
1 change: 1 addition & 0 deletions
1
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/148/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Base64.toString "QmFzZTY0IGlzIGEgZ3JvdXAgb2YgYmluYXJ5LXRvLXRleHQgZW5jb2Rpbmcgc2NoZW1lcyB0aGF0IHRyYW5zZm9ybXMgYmluYXJ5IGRhdGEgaW50byBhIHNlcXVlbmNlIG9mIHByaW50YWJsZSBjaGFyYWN0ZXJzLCBsaW1pdGVkIHRvIGEgc2V0IG9mIDY0IHVuaXF1ZSBjaGFyYWN0ZXJzLiBNb3JlIHNwZWNpZmljYWxseSwgdGhlIHNvdXJjZSBiaW5hcnkgZGF0YSBpcyB0YWtlbiA2IGJpdHMgYXQgYSB0aW1lLCB0aGVuIHRoaXMgZ3JvdXAgb2YgNiBiaXRzIGlzIG1hcHBlZCB0byBvbmUgb2YgNjQgdW5pcXVlIGNoYXJhY3RlcnMu" |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/151/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Nothing |
1 change: 1 addition & 0 deletions
1
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/151/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Base64.toString "VGV-dA==" |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/152/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Nothing |
1 change: 1 addition & 0 deletions
1
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/152/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Base64.toString "VG#zdA==" |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/165/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[72,101,120,97,100,101,99,105,109,97,108,32,116,111,32,111,99,116,97,108,32,116,114,97,110,115,102,111,114,109,97,116,105,111,110,32,105,115,32,117,115,101,102,117,108,32,116,111,32,99,111,110,118,101,114,116,32,98,101,116,119,101,101,110,32,98,105,110,97,114,121,32,97,110,100,32,66,97,115,101,54,52,46,32,83,117,99,104,32,99,111,110,118,101,114,115,105,111,110,32,105,115,32,97,118,97,105,108,97,98,108,101,32,102,111,114,32,98,111,116,104,32,97,100,118,97,110,99,101,100,32,99,97,108,99,117,108,97,116,111,114,115,32,97,110,100,32,112,114,111,103,114,97,109,109,105,110,103,32,108,97,110,103,117,97,103,101,115,46,32,70,111,114,32,101,120,97,109,112,108,101,44,32,116,104,101,32,104,101,120,97,100,101,99,105,109,97,108,32,114,101,112,114,101,115,101,110,116,97,116,105,111,110,32,111,102,32,116,104,101,32,50,52,32,98,105,116,115,32,97,98,111,118,101,32,105,115,32,52,68,54,49,54,69,46,32,84,104,101,32,111,99,116,97,108,32,114,101,112,114,101,115,101,110,116,97,116,105,111,110,32,105,115,32,50,51,50,54,48,53,53,54,46,32,84,104,111,115,101,32,56,32,111,99,116,97,108,32,100,105,103,105,116,115,32,99,97,110,32,98,101,32,115,112,108,105,116,32,105,110,116,111,32,112,97,105,114,115,32,40,50,51,32,50,54,32,48,53,32,53,54,41,44,32,97,110,100,32,101,97,99,104,32,112,97,105,114,32,105,115,32,99,111,110,118,101,114,116,101,100,32,116,111,32,100,101,99,105,109,97,108,32,116,111,32,121,105,101,108,100,32,49,57,32,50,50,32,48,53,32,52,54,46,32,85,115,105,110,103,32,116,104,111,115,101,32,102,111,117,114,32,100,101,99,105,109,97,108,32,110,117,109,98,101,114,115,32,97,115,32,105,110,100,105,99,101,115,32,102,111,114,32,116,104,101,32,66,97,115,101,54,52,32,97,108,112,104,97,98,101,116,44,32,116,104,101,32,99,111,114,114,101,115,112,111,110,100,105,110,103,32,65,83,67,73,73,32,99,104,97,114,97,99,116,101,114,115,32,97,114,101,32,84,87,70,117,46,10,10,73,102,32,116,104,101,114,101,32,97,114,101,32,111,110,108,121,32,116,119,111,32,115,105,103,110,105,102,105,99,97,110,116,32,105,110,112,117,116,32,111,99,116,101,116,115,32,40,101,46,103,46,44,32,39,77,97,39,41,44,32,111,114,32,119,104,101,110,32,116,104,101,32,108,97,115,116,32,105,110,112,117,116,32,103,114,111,117,112,32,99,111,110,116,97,105,110,115,32,111,110,108,121,32,116,119,111,32,111,99,116,101,116,115,44,32,97,108,108,32,49,54,32,98,105,116,115,32,119,105,108,108,32,98,101,32,99,97,112,116,117,114,101,100,32,105,110,32,116,104,101,32,102,105,114,115,116,32,116,104,114,101,101,32,66,97,115,101,54,52,32,100,105,103,105,116,115,32,40,49,56,32,98,105,116,115,41,59,32,116,104,101,32,116,119,111,32,108,101,97,115,116,32,115,105,103,110,105,102,105,99,97,110,116,32,98,105,116,115,32,111,102,32,116,104,101,32,108,97,115,116,32,99,111,110,116,101,110,116,45,98,101,97,114,105,110,103,32,54,45,98,105,116,32,98,108,111,99,107,32,119,105,108,108,32,116,117,114,110,32,111,117,116,32,116,111,32,98,101,32,122,101,114,111,44,32,97,110,100,32,100,105,115,99,97,114,100,101,100,32,111,110,32,100,101,99,111,100,105,110,103,32,40,97,108,111,110,103,32,119,105,116,104,32,116,104,101,32,115,117,99,99,101,101,100,105,110,103,32,61,32,112,97,100,100,105,110,103,32,99,104,97,114,97,99,116,101,114,41,58] |
17 changes: 17 additions & 0 deletions
17
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/165/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
case | ||
Base64.toBytes "SGV4YWRlY2ltYWwgdG8gb2N0YWwgdHJhbnNmb3JtYXRpb24gaXMgdXNlZnVsIHRvIGNvbnZlcnQgYmV0d2VlbiBiaW5hcnkgYW5kIEJhc2U2NC4gU3VjaCBjb252ZXJzaW9uIGlzIGF2YWlsYWJsZSBmb3IgYm90aCBhZHZhbmNlZCBjYWxjdWxhdG9ycyBhbmQgcHJvZ3JhbW1pbmcgbGFuZ3VhZ2VzLiBGb3IgZXhhbXBsZSwgdGhlIGhleGFkZWNpbWFsIHJlcHJlc2VudGF0aW9uIG9mIHRoZSAyNCBiaXRzIGFib3ZlIGlzIDRENjE2RS4gVGhlIG9jdGFsIHJlcHJlc2VudGF0aW9uIGlzIDIzMjYwNTU2LiBUaG9zZSA4IG9jdGFsIGRpZ2l0cyBjYW4gYmUgc3BsaXQgaW50byBwYWlycyAoMjMgMjYgMDUgNTYpLCBhbmQgZWFjaCBwYWlyIGlzIGNvbnZlcnRlZCB0byBkZWNpbWFsIHRvIHlpZWxkIDE5IDIyIDA1IDQ2LiBVc2luZyB0aG9zZSBmb3VyIGRlY2ltYWwgbnVtYmVycyBhcyBpbmRpY2VzIGZvciB0aGUgQmFzZTY0IGFscGhhYmV0LCB0aGUgY29ycmVzcG9uZGluZyBBU0NJSSBjaGFyYWN0ZXJzIGFyZSBUV0Z1LgoKSWYgdGhlcmUgYXJlIG9ubHkgdHdvIHNpZ25pZmljYW50IGlucHV0IG9jdGV0cyAoZS5nLiwgJ01hJyksIG9yIHdoZW4gdGhlIGxhc3QgaW5wdXQgZ3JvdXAgY29udGFpbnMgb25seSB0d28gb2N0ZXRzLCBhbGwgMTYgYml0cyB3aWxsIGJlIGNhcHR1cmVkIGluIHRoZSBmaXJzdCB0aHJlZSBCYXNlNjQgZGlnaXRzICgxOCBiaXRzKTsgdGhlIHR3byBsZWFzdCBzaWduaWZpY2FudCBiaXRzIG9mIHRoZSBsYXN0IGNvbnRlbnQtYmVhcmluZyA2LWJpdCBibG9jayB3aWxsIHR1cm4gb3V0IHRvIGJlIHplcm8sIGFuZCBkaXNjYXJkZWQgb24gZGVjb2RpbmcgKGFsb25nIHdpdGggdGhlIHN1Y2NlZWRpbmcgPSBwYWRkaW5nIGNoYXJhY3Rlcik6" | ||
of | ||
Nothing -> | ||
[ -11 ] | ||
|
||
Just bytes -> | ||
case | ||
Bytes.Decode.decode | ||
(DecodeExtra.list 879 Bytes.Decode.unsignedInt8) | ||
bytes | ||
of | ||
Nothing -> | ||
[ -13 ] | ||
|
||
Just bytes_list -> | ||
bytes_list |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/310/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<0 bytes> |
1 change: 1 addition & 0 deletions
1
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/310/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Bytes.Encode.encode (Bytes.Encode.string "") |
1 change: 1 addition & 0 deletions
1
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/313/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just [10,32,32,32,32,85,84,70,45,56,32,105,115,32,97,32,99,104,97,114,97,99,116,101,114,32,101,110,99,111,100,105,110,103,32,115,116,97,110,100,97,114,100,32,117,115,101,100,32,102,111,114,32,101,108,101,99,116,114,111,110,105,99,32,99,111,109,109,117,110,105,99,97,116,105,111,110,46,32,68,101,102,105,110,101,100,32,98,121,32,116,104,101,32,85,110,105,99,111,100,101,32,83,116,97,110,100,97,114,100,44,32,116,104,101,32,110,97,109,101,32,105,115,32,100,101,114,105,118,101,100,32,102,114,111,109,32,85,110,105,99,111,100,101,32,84,114,97,110,115,102,111,114,109,97,116,105,111,110,32,70,111,114,109,97,116,32,226,128,147,32,56,45,98,105,116,46,32,65,108,109,111,115,116,32,101,118,101,114,121,32,119,101,98,112,97,103,101,32,105,115,32,115,116,111,114,101,100,32,105,110,32,85,84,70,45,56,46,10,32,32,32,32,10,32,32,32,32,85,84,70,45,56,32,105,115,32,99,97,112,97,98,108,101,32,111,102,32,101,110,99,111,100,105,110,103,32,97,108,108,32,49,44,49,49,50,44,48,54,52,32,118,97,108,105,100,32,85,110,105,99,111,100,101,32,115,99,97,108,97,114,32,118,97,108,117,101,115,32,117,115,105,110,103,32,97,32,118,97,114,105,97,98,108,101,45,119,105,100,116,104,32,101,110,99,111,100,105,110,103,32,111,102,32,111,110,101,32,116,111,32,102,111,117,114,32,111,110,101,45,98,121,116,101,32,40,56,45,98,105,116,41,32,99,111,100,101,32,117,110,105,116,115,46,10,32,32,32,32,10,32,32,32,32,67,111,100,101,32,112,111,105,110,116,115,32,119,105,116,104,32,108,111,119,101,114,32,110,117,109,101,114,105,99,97,108,32,118,97,108,117,101,115,44,32,119,104,105,99,104,32,116,101,110,100,32,116,111,32,111,99,99,117,114,32,109,111,114,101,32,102,114,101,113,117,101,110,116,108,121,44,32,97,114,101,32,101,110,99,111,100,101,100,32,117,115,105,110,103,32,102,101,119,101,114,32,98,121,116,101,115,46,32,73,116,32,119,97,115,32,100,101,115,105,103,110,101,100,32,102,111,114,32,98,97,99,107,119,97,114,100,32,99,111,109,112,97,116,105,98,105,108,105,116,121,32,119,105,116,104,32,65,83,67,73,73,58,32,116,104,101,32,102,105,114,115,116,32,49,50,56,32,99,104,97,114,97,99,116,101,114,115,32,111,102,32,85,110,105,99,111,100,101,44,32,119,104,105,99,104,32,99,111,114,114,101,115,112,111,110,100,32,111,110,101,45,116,111,45,111,110,101,32,119,105,116,104,32,65,83,67,73,73,44,32,97,114,101,32,101,110,99,111,100,101,100,32,117,115,105,110,103,32,97,32,115,105,110,103,108,101,32,98,121,116,101,32,119,105,116,104,32,116,104,101,32,115,97,109,101,32,98,105,110,97,114,121,32,118,97,108,117,101,32,97,115,32,65,83,67,73,73,44,32,115,111,32,116,104,97,116,32,97,32,85,84,70,45,56,45,101,110,99,111,100,101,100,32,102,105,108,101,32,117,115,105,110,103,32,111,110,108,121,32,116,104,111,115,101,32,99,104,97,114,97,99,116,101,114,115,32,105,115,32,105,100,101,110,116,105,99,97,108,32,116,111,32,97,110,32,65,83,67,73,73,32,102,105,108,101,46,32,77,111,115,116,32,115,111,102,116,119,97,114,101,32,100,101,115,105,103,110,101,100,32,102,111,114,32,97,110,121,32,101,120,116,101,110,100,101,100,32,65,83,67,73,73,32,99,97,110,32,114,101,97,100,32,97,110,100,32,119,114,105,116,101,32,85,84,70,45,56,32,40,105,110,99,108,117,100,105,110,103,32,111,110,32,77,105,99,114,111,115,111,102,116,32,87,105,110,100,111,119,115,41,32,97,110,100,32,116,104,105,115,32,114,101,115,117,108,116,115,32,105,110,32,102,101,119,101,114,32,105,110,116,101,114,110,97,116,105,111,110,97,108,105,122,97,116,105,111,110,32,105,115,115,117,101,115,32,116,104,97,110,32,97,110,121,32,97,108,116,101,114,110,97,116,105,118,101,32,116,101,120,116,32,101,110,99,111,100,105,110,103,46,91,51,93,91,52,93,10,32,32,32,32] |
11 changes: 11 additions & 0 deletions
11
...-train/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/313/submission.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Bytes.Decode.decode | ||
(DecodeExtra.list 986 Bytes.Decode.unsignedInt8) | ||
(Bytes.Encode.encode | ||
(Bytes.Encode.string | ||
""" | ||
UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from Unicode Transformation Format – 8-bit. Almost every webpage is stored in UTF-8. | ||
|
||
UTF-8 is capable of encoding all 1,112,064 valid Unicode scalar values using a variable-width encoding of one to four one-byte (8-bit) code units. | ||
|
||
Code points with lower numerical values, which tend to occur more frequently, are encoded using fewer bytes. It was designed for backward compatibility with ASCII: the first 128 characters of Unicode, which correspond one-to-one with ASCII, are encoded using a single byte with the same binary value as ASCII, so that a UTF-8-encoded file using only those characters is identical to an ASCII file. Most software designed for any extended ASCII can read and write UTF-8 (including on Microsoft Windows) and this results in fewer internationalization issues than any alternative text encoding.[3][4] | ||
""")) |
5 changes: 5 additions & 0 deletions
5
...in/elm-interactive-scenarios-train/elm-compiler-dependencies/steps/333/expected-value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Just " | ||
The International Organization for Standardization (ISO) set out to compose a universal multi-byte character set in 1989. The draft ISO 10646 standard contained a non-required annex called UTF-1 that provided a byte stream encoding of its 32-bit code points. This encoding was not satisfactory on performance grounds, among other problems, and the biggest problem was probably that it did not have a clear separation between ASCII and non-ASCII: new UTF-1 tools would be backward compatible with ASCII-encoded text, but UTF-1-encoded text could confuse existing code expecting ASCII (or extended ASCII), because it could contain continuation bytes in the range 0x21–0x7E that meant something else in ASCII, e.g., 0x2F for /, the Unix path directory separator. | ||
|
||
In July 1992, the X/Open committee XoJIG was looking for a better encoding. Dave Prosser of Unix System Laboratories submitted a proposal for one that had faster implementation characteristics and introduced the improvement that 7-bit ASCII characters would only represent themselves; multi-byte sequences would only include bytes with the high bit set. The name File System Safe UCS Transformation Format (FSS-UTF)[5] and most of the text of this proposal were later preserved in the final specification.[6][7][8] In August 1992, this proposal was circulated by an IBM X/Open representative to interested parties. A modification by Ken Thompson of the Plan 9 operating system group at Bell Labs made it self-synchronizing, letting a reader start anywhere and immediately detect character boundaries, at the cost of being somewhat less bit-efficient than the previous proposal. It also abandoned the use of biases that prevented overlong encodings.[8][9] Thompson's design was outlined on September 2, 1992, on a placemat in a New Jersey diner with Rob Pike. In the following days, Pike and Thompson implemented it and updated Plan 9 to use it throughout,[10] and then communicated their success back to X/Open, which accepted it as the specification for FSS-UTF.[8] | ||
" |
Oops, something went wrong.