You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Trim trailing whitespace
* Fix ENV usage
Also fix wrong default of DRWATSON_STOREPATCH in docs.
* Add test for tag!() based on ENV
* Fix CI
Apparently, GitHub CI doesn't expect it's git to perform a commit, so it
doesn't have user.name configured. Let's hope this makes CI happy.
* Add documentation for readenv()
_test_tag!(d, path, false, "") # variable set but empty
59
+
_test_tag!(d, path, false, "false") # variable parses as false
60
+
_test_tag!(d, path, false, "0") # variable parses as false
61
+
_test_tag!(d, path, false, "rubbish") # variable not a Bool
62
+
end
63
+
@testset"patch"begin
64
+
_test_tag!(d, dpath, true, "true") # variable parses as true
65
+
_test_tag!(d, dpath, true, "1") # variable parses as true
66
+
end
30
67
end
31
68
69
+
# Ensure that above tests operated out-of-place.
70
+
@test d1 ==Dict(:x=>3, :y=>4)
71
+
@test d2 ==Dict("x"=>3, "y"=>4)
72
+
32
73
# Test assertion error when the data has a incompatible key type
33
74
@test_throwsAssertionError("We only know how to tag dictionaries that have keys that are strings or symbols") tag!(Dict{Int64,Any}(1=>2))
34
75
@test_throwsAssertionError("We only know how to tag dictionaries that have keys that are strings or symbols") DrWatson.scripttag!(Dict{Int64,Any}(1=>2), "foo")
0 commit comments