Skip to content

Commit

Permalink
Rework and extend integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Mar 7, 2024
1 parent a0df5d6 commit a43ffcd
Show file tree
Hide file tree
Showing 19 changed files with 805 additions and 442 deletions.
138 changes: 0 additions & 138 deletions tests/content_matching.rs

This file was deleted.

224 changes: 0 additions & 224 deletions tests/file_matching.rs

This file was deleted.

5 changes: 5 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <amdmi3@amdmi3.ru>
// SPDX-License-Identifier: GPL-3.0-or-later

mod integration_tests;
mod utils;
12 changes: 12 additions & 0 deletions tests/integration_tests/conditionless_rule.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-FileCopyrightText: Copyright 2024 Dmitry Marakasov <amdmi3@amdmi3.ru>
// SPDX-License-Identifier: GPL-3.0-or-later

use crate::utils::TestCase;

#[test]
fn conditionless_rule() {
TestCase::new_for_json_tests()
.add_rule("")
.run()
.assert_matches(vec![""]);
}
Loading

0 comments on commit a43ffcd

Please sign in to comment.