Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kkebo committed Jun 2, 2024
1 parent b891fec commit 195110b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/HTMLEntitiesTests/HTMLEntitiesTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
private import Foundation
private import HTMLEntities
private import Str
import Testing

private struct Entry: Decodable {
Expand All @@ -15,7 +16,7 @@ private struct Entry: Decodable {
)

for (key, value) in dict {
switch namedChars[String(key.dropFirst())]! {
switch namedChars[Str(key.dropFirst().unicodeScalars)]! {
case (let c1, "\0"): #expect(value.codepoints == [c1.value])
case (let c1, let c2): #expect(value.codepoints == [c1.value, c2.value])
}
Expand Down
1 change: 1 addition & 0 deletions Tests/TokenizerTests/HTML5LibTestsParser.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
private import Str
import Tokenizer

struct TestFile: Decodable {
Expand Down

0 comments on commit 195110b

Please sign in to comment.