alle new
This commit is contained in:
erik committed 2026-10-01 06:46:51 +02:00
1 parent da64472251
commit 5b20adee48
1605 files changed
+396517 -1674

No files matched your search

Generated Vendored Executable
+21
View File
@@ -0,0 +1,21 @@
var StringSource = require("../lib/StringSource");
exports.stringSourceRangeDescriptionIncludesLineAndCharacterNumber = function(test) {
test.equal(
"Line number: 1\nCharacter number: 3",
new StringSource("blah").range(2, 3).describe()
);
test.equal(
"Line number: 3\nCharacter number: 5",
new StringSource("one\ntwo\nthree\nfour").range(12, 15).describe()
);
test.done();
};
exports.stringSourceRangeDescriptionIncludesDescriptionIfProvided = function(test) {
test.equal(
"File: /some/file\nLine number: 1\nCharacter number: 3",
new StringSource("blah", "File: /some/file").range(2, 3).describe()
);
test.done();
};