Befor generating

This commit is contained in:
marys
2026-06-01 13:17:37 +02:00
parent 3383f4bf4a
commit 1aa1b5f625
6756 changed files with 649946 additions and 1 deletions
+71
View File
@@ -0,0 +1,71 @@
import util = require("./testUtil");
suite('YAML Syntax', () => {
suite('Warnings for tab symbols', () => {
test('test 001', function () {
testErrors(
"schemas:\n" +
" - !i",
[
{
line: 1,
column: 4,
message: "unknown tag <!i>",
isWarning: false
}
]
);
});
test('test 002', function () {
testErrors(
"schemas:\n" +
" - !in",
[
{
line: 1,
column: 4,
message: "unknown tag <!in>",
isWarning: false
}
]
);
});
test('test 003', function () {
testErrors(
"schemas:\n" +
" - !inc",
[
{
line: 1,
column: 4,
message: "unknown tag <!inc>",
isWarning: false
}
]
);
});
test('test 004', function () {
testErrors(
"schemas:\n" +
" - !incl",
[
{
line: 1,
column: 4,
message: "unknown tag <!incl>",
isWarning: false
}
]
);
});
});
});
function testErrors(input:string,expectedErrors: util.TestError[]) {
util.testErrors(input, expectedErrors);
}