@@ -18,15 +18,15 @@ using Random
1818
1919 # Test saving
2020 @testset " Saving" begin
21- save_tensor_network (tn; folder= test_dir)
21+ TensorInference . save_tensor_network (tn; folder= test_dir)
2222 @test isfile (joinpath (test_dir, " code.json" ))
2323 @test isfile (joinpath (test_dir, " tensors.json" ))
2424 @test isfile (joinpath (test_dir, " model.json" ))
2525 end
2626
2727 # Test loading
2828 @testset " Loading" begin
29- tn_loaded = load_tensor_network (test_dir)
29+ tn_loaded = TensorInference . load_tensor_network (test_dir)
3030
3131 # Verify basic properties
3232 @test tn_loaded. nvars == tn. nvars
@@ -47,24 +47,6 @@ using Random
4747 # Verify model functionality
4848 @test probability (tn)[] ≈ probability (tn_loaded)[]
4949 end
50-
51- # Test error handling
52- @testset " Error handling" begin
53- # Invalid directory
54- @test_throws SystemError load_tensor_network (" nonexistent_directory" )
55-
56- # Missing files
57- for file in [" code.json" , " tensors.json" , " model.json" ]
58- bad_dir = mktempdir ()
59- save_tensor_network (tn; folder= bad_dir)
60- rm (joinpath (bad_dir, file))
61- @test_throws SystemError load_tensor_network (bad_dir)
62- rm (bad_dir, recursive= true )
63- end
64- end
65-
66- # Clean up
67- rm (test_dir, recursive= true )
6850end
6951
7052@testset " Tensor serialization" begin
0 commit comments