Skip to content

Commit 736040d

Browse files
committed
Make test clearer & Move other test for better reading flow
It didn't make sense why there was a 'my' at the front of the text (it seemed misleading) so it's been removed
1 parent c936b21 commit 736040d

File tree

1 file changed

+6
-6
lines changed
  • csv-validator-core/src/test/scala/uk/gov/nationalarchives/csv/validator/schema/v1_0

1 file changed

+6
-6
lines changed

csv-validator-core/src/test/scala/uk/gov/nationalarchives/csv/validator/schema/v1_0/InRuleSpec.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ class InRuleSpec extends Specification {
2323
val globalDirsOne = List(TotalColumns(1))
2424

2525
"succeed if inRule is embedded in value" in {
26-
val inRule = InRule(Literal(Some("myhello world today")))
27-
inRule.evaluate(0, Row(List(Cell("hello world")), 1), Schema(globalDirsOne, List(ColumnDefinition(NamedColumnIdentifier("column1"))))) mustEqual Validated.Valid(true)
28-
}
29-
30-
"succeed if inRule is the same as value" in {
31-
val inRule = InRule(Literal(Some("hello world")))
26+
val inRule = InRule(Literal(Some("hello world today")))
3227
inRule.evaluate(0, Row(List(Cell("hello world")), 1), Schema(globalDirsOne, List(ColumnDefinition(NamedColumnIdentifier("column1"))))) mustEqual Validated.Valid(true)
3328
}
3429

@@ -40,6 +35,11 @@ class InRuleSpec extends Specification {
4035
}
4136
}
4237

38+
"succeed if inRule is the same as value" in {
39+
val inRule = InRule(Literal(Some("hello world")))
40+
inRule.evaluate(0, Row(List(Cell("hello world")), 1), Schema(globalDirsOne, List(ColumnDefinition(NamedColumnIdentifier("column1"))))) mustEqual Validated.Valid(true)
41+
}
42+
4343
"succeed if inRule's column reference does exist" in {
4444
val inRule = InRule(ColumnReference(NamedColumnIdentifier("column1")))
4545

0 commit comments

Comments
 (0)