fn from_manifest() {
        // Create a manifest
        let manifest = VersionManifest::new();

        // Test whether parsing works for each test version
        for version in TEST_VERSIONS {
            assert_eq!(
                Version::from_manifest(&version.0, &manifest)
                    .unwrap()
                    .manifest,
                Some(&manifest)
            );
        }

        // Test whether parsing works for each test invalid version
        for version in TEST_VERSIONS_ERROR {
            assert!(Version::from_manifest(&version.0, &manifest).is_none());
        }
    }
// TODO: This doesn't really test whether this method fully works
This doesn't really test whether this method fully works
This doesn ' t really test whether this method fully works
fn from_manifest() {
        // Create a manifest
        let manifest = VersionManifest::new();
        // Test whether parsing works for each test version
        for version in TEST_VERSIONS {
            assert_eq!(
                Version::from_manifest(&version.0, &manifest)
                    .unwrap()
                    .manifest,
                Some(&manifest)
            );
        }
        // Test whether parsing works for each test invalid version
        for version in TEST_VERSIONS_ERROR {
            assert!(Version::from_manifest(&version.0, &manifest).is_none());
        }
    }
fn from_manifest ( ) { // Create a manifest let manifest = VersionManifest :: new ( ) ; // Test whether parsing works for each test version for version in TEST_VERSIONS { assert_eq ! ( Version from_manifest ( version 0 manifest ) unwrap ( ) manifest Some ( manifest ) ) ; } // Test whether parsing works for each test invalid version for version in TEST_VERSIONS_ERROR { assert ! ( Version from_manifest ( version 0 manifest ) is_none ( ) ) ; } }
TODO: This doesn't really test whether this method fully works
TODO : This doesn ' t really test whether this method fully works