Skip to content

Ternary Expression verifier and parser in Java. Includes JUnit 4 tests

Notifications You must be signed in to change notification settings

cassiossousa/ternaryExpression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

ternaryExpression

Ternary Expression verifier in Java. Includes JUnit 4 tests.

Tests

  • See if the expression itself is empty or null;
  • See if the colons come before the question marks;
  • See if the colon count is different than the question mark count;
  • See if there are empty elements on the parsed String;
  • Block "a?b?c:d:" - that might have passed on the last test;
  • Test for duplicates.

About

Ternary Expression verifier and parser in Java. Includes JUnit 4 tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages