lua-TestLongString
an extension for testing long string

References

is_string( got, expected [, name] )

like_string( got, pattern [, name] )

unlike_string( got, pattern [, name] )

contains_string( str, substring [, name] )

lacks_string( str, substring [, name] )

Examples

require 'Test.More'
require 'Test.LongString'

plan(5)

is_string('str', 'str', "is_string")
like_string('str', '^%w+', "like_string")
unlike_string('str', '^%d+', "unlike_string")
contains_string('a string', 'str', "contains_string")
lacks_string('a string', 'STR', "contains_string")