File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
itest/rust/src/register_tests Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ mod func_test;
12
12
mod gdscript_ffi_test;
13
13
mod naming_tests;
14
14
mod option_ffi_test;
15
+ mod register_docs_test;
15
16
#[ cfg( feature = "codegen-full" ) ]
16
17
mod rpc_test;
17
18
mod var_test;
Original file line number Diff line number Diff line change 7
7
8
8
#![ cfg( feature = "register-docs" ) ]
9
9
10
+ use crate :: framework:: itest;
10
11
use godot:: prelude:: * ;
11
12
12
13
/// *documented* ~ **documented** ~ [AABB] < [pr](https://github.com/godot-rust/gdext/pull/748)
@@ -189,15 +190,16 @@ impl FairlyDocumented {
189
190
fn documented_signal ( p : Vector3 , w : f64 , node : Gd < Node > ) ;
190
191
}
191
192
192
- #[ test ]
193
- fn correct ( ) {
193
+ #[ itest ( focus ) ]
194
+ fn test_register_docs ( ) {
194
195
// Uncomment if implementation changes and expected output file should be rewritten.
195
196
// std::fs::write(
196
- // "tests/test_data/docs .xml",
197
+ // "res/registered_docs .xml",
197
198
// godot_core::docs::gather_xml_docs().next().unwrap(),
198
199
// );
200
+
199
201
assert_eq ! (
200
- include_str!( "test_data/docs .xml" ) ,
201
- godot_core :: docs:: gather_xml_docs( ) . next( ) . unwrap( )
202
+ include_str!( "res/registered_docs .xml" ) ,
203
+ godot :: docs:: gather_xml_docs( ) . next( ) . unwrap( )
202
204
) ;
203
205
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments