We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55afa63 commit 5e32ea6Copy full SHA for 5e32ea6
1 file changed
spec/model_literal_spec.rb
@@ -133,6 +133,22 @@ def self.literals(*selector)
133
end
134
135
136
+ describe "#english?" do
137
+ literals(:all).each do |args|
138
+ options = args.last.is_a?(Hash) ? args.pop : {}
139
+ lit = RDF::Literal.new(*args, **options)
140
+ if lit.language? && lit.language.to_s.downcase.start_with?('en')
141
+ it "returns true for #{lit.inspect}" do
142
+ expect(lit).to be_english
143
+ end
144
+ else
145
+ it "returns false for #{lit.inspect}" do
146
+ expect(lit).not_to be_english
147
148
149
150
151
+
152
describe "#datatype" do
153
literals(:all_simple).each do |args|
154
it "returns xsd:string for #{args.inspect}" do
0 commit comments