Adding initial tests for Repeat nodes

This commit is contained in:
Jeff Avallone
2014-12-20 13:03:57 -05:00
parent 79cda13dc5
commit 82ca4f40f7
2 changed files with 170 additions and 3 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ export default {
if (this.minimum === this.maximum) {
return formatTimes(this.minimum - 1);
} else {
return `${this.minimum - 1}...${formatTimes(this.maximum - 1)}`;
return `${this.minimum - 1}\u2026${formatTimes(this.maximum - 1)}`;
}
}
}
@@ -46,7 +46,7 @@ export default {
this.minimum = this.properties.spec.minimum;
this.maximum = this.properties.spec.maximum;
this.greedy = (this.properties.greedy.textValue === '');
this.hasSkip = this.minimum === 0;
this.hasLoop = this.maximum === -1 || this.maximum > 1;
this.hasSkip = (this.minimum === 0);
this.hasLoop = (this.maximum === -1 || this.maximum > 1);
}
}