Sfoglia il codice sorgente

Ajout test perso Lisp

Arthur Brandao 6 anni fa
parent
commit
6946b22e5b
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      TDD2019OWNTESTS
  2. 1 1
      src/migl/lisp/LispImpl.java

+ 1 - 1
TDD2019OWNTESTS

@@ -1 +1 @@
-Subproject commit b63186db5cf7f94355c1b9a0ae7c13b09b2339ea
+Subproject commit 4153f2fca97c34e37fcfc2e8116f7b784e1b173d

+ 1 - 1
src/migl/lisp/LispImpl.java

@@ -17,7 +17,7 @@ public class LispImpl implements Lisp {
 			return this.parseList(explode);
 		} else {
 			//Element seul
-			if(explode.size() > 1) {
+			if(explode.size() > 0) {
 				throw new LispError("Invalid format");
 			}
 			return this.parseElement(val);