blob: c55b1b39cb1d1fd7cc0ff9c347256fb79941c4f5 [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 sgrekhov@unipro.ru
*/
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"));
}