app-dirs-rs / app_dirs2

A maintained fork of the app-dirs-rs project.
MIT License
35 stars 7 forks source link

Upgrade to `test-case 2` to support return types #26

Closed MarijnS95 closed 2 years ago

MarijnS95 commented 2 years ago

tests/fs.rs fails to compile on test-case 1:

error: Test function test_no_create has a return-type but no exected clause in the test-case. This is currently unsupported. See test-case documentation for more details.
  --> tests/fs.rs:41:39
   |
41 | fn test_no_create(ty: AppDataType) -> io::Result<()> {
   |                                       ^^
...
error: could not compile `app_dirs2` due to 2 previous errors

This has been addressed in test-case 2, where returning a Result from a test_case function actually fails the test (and compiles sucessfully in the first place).