1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 09:27:34 +08:00
osu-lazer/osu.Game.Tests
Bartłomiej Dach cb1f7e2dc7 Fix platform dependency in buffered reader test
Tests for the line-buffered reader added in 7b1ff38 were subtly
dependent on the execution environment due to differing end-of-line
markers on Windows and Unix-based systems.

Because StreamReader discards all newlines when reading line-by-line,
LineBufferedReader used a StringBuilder to patch the peeked lines
back together with the remaining contents of the file being read.
As StringBuilder.AppendLine uses the environment-specific newline
delimiter, the delimiters after the peeked-but-unconsumed lines can
therefore be substituted by the platform-specific variants, causing
the test failures due to the overly-simplified way they were written.

Reformulate the test to avoid such issues from resurfacing again
by splitting lines by \r or \n and then testing each line individually.
Additionally remove all raw literals in favour of explicitly mixing
various line delimiter character sequences for additional coverage.
2019-10-10 15:33:18 +02:00
..
Beatmaps Fix platform dependency in buffered reader test 2019-10-10 15:33:18 +02:00
Chat Add parenthesis handling to old link format 2019-09-04 00:21:27 +02:00
NonVisual Fix floating point handling in filter intervals 2019-09-22 00:20:55 +02:00
Resources Implement fallback decoder registration 2019-09-15 01:28:07 +02:00
Scores/IO Adjust test to assert that the import failed 2019-09-22 00:59:40 +09:00
ScrollAlgorithms Update licence header (and remove year) 2019-01-24 17:43:03 +09:00
Skins Merge branch 'master' into beatmap-parsing-fallback-v2 2019-10-03 15:12:21 +08:00
Visual Rename test case to better match underlying class 2019-10-09 16:05:38 +09:00
osu.Game.Tests.csproj Bump Microsoft.NET.Test.Sdk from 16.2.0 to 16.3.0 2019-09-19 16:32:39 +00:00
WaveformTestBeatmap.cs Migrate decoding to line-buffered reader 2019-09-15 01:28:07 +02:00