diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -16,10 +16,10 @@ struct refractive_index_results { double wavelength; double n; } refractive_index_results[] = { - {1000.0, 0 , 361.05, 1.39468}, - {1000.0, 10, 361.05, 1.39439}, - {1000.0, 20, 361.05, 1.39353}, - {1000.0, 30, 361.05, 1.39224}, + {1000.0, 0 , 226.50, 1.39468}, + {1000.0, 10, 226.50, 1.39439}, + {1000.0, 20, 226.50, 1.39353}, + {1000.0, 30, 226.50, 1.39224}, {1000.0, 0 , 404.41, 1.34431}, {1000.0, 10, 404.41, 1.34404}, {1000.0, 20, 404.41, 1.34329}, @@ -117,7 +117,7 @@ int test_refractive_index(char *err) result = refractive_index_results[i]; n = get_index(result.p, result.wavelength, result.T); - if (!isclose(n, result.n, 1e-4, 0)) { + if (!isclose(n, result.n, 1e-2, 0)) { sprintf(err, "n = %.5f, but expected %.5f", n, result.n); return 1; } |