mirror of https://github.com/ppy/osu
Assert column line width length for extra safety
This commit is contained in:
parent
7ca4d85441
commit
7b848e1458
|
@ -126,6 +126,7 @@ public void TestParseArrayWithSomeEmptyElements()
|
|||
var configs = decoder.Decode(stream);
|
||||
|
||||
Assert.That(configs.Count, Is.EqualTo(1));
|
||||
Assert.That(configs[0].ColumnLineWidth.Length, Is.EqualTo(5));
|
||||
Assert.That(configs[0].ColumnLineWidth[0], Is.EqualTo(3));
|
||||
Assert.That(configs[0].ColumnLineWidth[1], Is.EqualTo(0)); // malformed entry, should be parsed as zero
|
||||
Assert.That(configs[0].ColumnLineWidth[2], Is.EqualTo(3));
|
||||
|
|
Loading…
Reference in New Issue