Skip to content

Commit e82a13c

Browse files
committed
unit_test_read_wsjcpp_hold_yaml.cpp -> test_read_wsjcpp_hold_yaml.cpp
1 parent ca57884 commit e82a13c

File tree

4 files changed

+41
-51
lines changed

4 files changed

+41
-51
lines changed

unit-tests.wsjcpp/data-tests/read-wsjcpp-hold-yml/wsjcpp.hold.yml renamed to src/tests/data/read-wsjcpp-hold-yml/wsjcpp.hold.yml

File renamed without changes.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
MIT License
3+
4+
Copyright (c) 2019-2025 wsjcpp
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
Official Source Code: https://github.com/wsjcpp/wsjcpp-yaml
25+
*/
26+
27+
#include <iostream>
28+
#include <wsjcpp_yaml.h>
29+
#include "helpers.h"
30+
31+
int main() {
32+
WsjcppYaml yaml;
33+
std::string sFilepath = find_test_data_file("data/read-wsjcpp-hold-yml/wsjcpp.hold.yml");
34+
std::string sError;
35+
if (!yaml.loadFromFile(sFilepath, sError)) {
36+
std::cerr << "Error parsing: " << sError << std::endl;
37+
return -1;
38+
}
39+
return 0;
40+
}

unit-tests.wsjcpp/src/unit_test_read_wsjcpp_hold_yaml.cpp

Lines changed: 0 additions & 49 deletions
This file was deleted.

wsjcpp.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,4 @@ unit-tests:
4242
description: Test Parse Array
4343
- name: YamlParserSimpleMap
4444
description: Test Parse Map
45-
- name: "ReadWsjcppHoldYml"
46-
description: ""
45+

0 commit comments

Comments
 (0)