Class: TestML::Runtime::Lang

Inherits:
TestML::Runtime
  • Object
show all
Includes:
Util
Defined in:
lib/testml/runtime/lang.rb

Instance Method Summary collapse

Instance Method Details

#assert_EQ(got, want) ⇒ Object



7
8
9
# File 'lib/testml/runtime/lang.rb', line 7

def assert_EQ(got, want)
  return bool got.value == want.value
end

#assert_HAS(got, has) ⇒ Object



11
12
13
# File 'lib/testml/runtime/lang.rb', line 11

def assert_HAS(got, has)
  return bool got.value.index(has.value) != -1
end

#assert_OK(got) ⇒ Object



15
16
17
# File 'lib/testml/runtime/lang.rb', line 15

def assert_OK(got)
  return bool !! got.value
end