blob: 4d99f7b222cc4ffc1b94e701b82637f546315dfd [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// @assertion const LineSplitter()
/// @description Checks that this constructor creates a valid LineSplitter
/// @author
import "dart:convert";
import "../../../Utils/expect.dart";
main() {
LineSplitter ls = new LineSplitter();
Expect.listEquals(["aaa", "bbb"], ls.convert("aaa\nbbb"));
Expect.listEquals(["aaa", "bbb", "c"], ls.convert("aaa\nbbb\rc"));
Expect.listEquals(["aaa", "bbb", "c"], ls.convert("aaa\nbbb\r\nc"));
Expect.listEquals(["aaa\fbbb", "c"], ls.convert("aaa\fbbb\r\nc"));
Expect.listEquals(["aaa\tbbb", "c"], ls.convert("aaa\tbbb\r\nc"));