Skip to content

Instantly share code, notes, and snippets.

@Anaminus
Created July 19, 2015 23:14
Show Gist options
  • Select an option

  • Save Anaminus/f3967c65e9636eb9bc35 to your computer and use it in GitHub Desktop.

Select an option

Save Anaminus/f3967c65e9636eb9bc35 to your computer and use it in GitHub Desktop.
Original:
<string name="Name">TEST</string>
Result Status:
pass file loads, property value is "TEST"
load file loads, property value is default value
fail file does not load, with an error message
Tests:
Subject: Result:
<>TEST</string> load
< >TEST</string> load
<a >TEST</string> load
< a>TEST</string> load
<a a>TEST</string> fail ('=' not found)
<a a=>TEST</string> fail ('"' not found)
<a a=">TEST</string> fail ('"' not found)
<a a="">TEST</string> load
<string name="Name">TEST</string> pass
<string name="Name" a>TEST</string> fail ('=' not found)
<string name="Name" a=>TEST</string> fail ('"' not found)
<string name="Name" a=">TEST</string> fail ('"' not found)
<string name="Name" a="">TEST</string> pass
<string name="Name">TEST</string> pass
<string a name="Name">TEST</string> load
<string a= name="Name">TEST</string> fail ('=' not found)
<string a=" name="Name">TEST</string> fail ('=' not found)
<string a="" name="Name">TEST</string> pass
<string a>TEST</string> fail ('=' not found)
<string a=>TEST</string> fail ('"' not found)
<string a= >TEST</string> fail ('"' not found)
<string a= ">TEST</string> load
<string a= a>TEST</string> fail ('"' not found)
<string a= a">TEST</string> load
<string a= a=>TEST</string> fail ('"' not found)
<string a= a=">TEST</string> load
<string a= a="">TEST</string> fail ('=' not found)
<string a= a=""=>TEST</string> fail ('"' not found)
<string a= a=""=">TEST</string> fail ('"' not found)
<string a= a=""="">TEST</string> load
<string a= a=""="=>TEST</string> fail ('"' not found)
<string a= " name="Name">TEST</string> pass
<string a=" name="Name">TEST</string> fail ('=' not found)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment