We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab3716 commit 91edd81Copy full SHA for 91edd81
src/models/feature_snapshot.rs
@@ -416,7 +416,14 @@ pub mod tests {
416
assert!(matches!(value, Value::Int64(ref v) if v == &2));
417
}
418
419
+ /// This test ensures that the rust client is using the same hashing algorithm as to other clients.
420
+ /// See same test for Node client:
421
+ /// https://github.com/IBM/appconfiguration-node-sdk/blob/master/test/unit/configurations/internal/utils.test.js#L25
422
+ #[test]
423
fn test_calculate_normalized_hash() {
- assert_eq!(calculate_normalized_hash(&"".to_string()), 41)
424
+ assert_eq!(
425
+ FeatureSnapshot::calculate_normalized_hash("entityId:featureId"),
426
+ 41
427
+ )
428
429
0 commit comments