hyTags
HomeHome DocumentationDocumentation

string-has-suffix

Checks if a string ends with a specified suffix.
Parameter
Type
Description
self
String
String to check
suffix
String
Suffix to search for
return
bool
True if string ends with suffix, false otherwise
Test Case:String has suffix
    <div></div>
    
    <string-new value="hello world">
    <string-has-suffix suffix="world">
    <assert-true>
    
    👆 Try to change something!
  • Test Case:String does not have suffix
      <div></div>
      
      <string-new value="hello world">
      <string-has-suffix suffix="hello">
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed