We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c2cbc commit 7af54dbCopy full SHA for 7af54db
test/REQUIRE
@@ -1 +1 @@
1
-StrTables
+InternedStrings
test/runtests.jl
@@ -5,7 +5,7 @@ using ModuleInterfaceTools
5
6
@api test
7
8
-@api extend StrTables
+@api extend InternedStrings
9
10
@api list StrTables
11
@@ -18,12 +18,12 @@ end
18
@test myname == "Scott Paul Jones"
19
end
20
21
-cvt_char(x::Integer) = 1
22
-cvt_char(x::Float64) = 2
+intern(x::Integer) = 1
+intern(x::Float64) = 2
23
24
@testset "Function extension" begin
25
- @test typeof(cvt_char("foo")) == Vector{Char}
26
- @test cvt_char(1) == 1
27
- @test cvt_char(2.0) == 2
28
- @test cvt_char("th") == Char['t', 'h']
+ @test typeof(intern("foo")) == String
+ @test intern(1) == 1
+ @test intern(2.0) == 2
+ @test intern("th") == "th"
29
0 commit comments