You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2024/01/03 01:05:42 UTC
(datasketches-go) 21/40: remove stray comment
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datasketches-go.git
commit 76f5a69f7b14473474f3e9434850862dd13ec542
Author: Pierre Lacave <pi...@datadoghq.com>
AuthorDate: Wed Dec 20 22:13:56 2023 +0100
remove stray comment
---
frequencies/long_sketch_test.go | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/frequencies/long_sketch_test.go b/frequencies/long_sketch_test.go
index 9f0f613..f6c41fd 100644
--- a/frequencies/long_sketch_test.go
+++ b/frequencies/long_sketch_test.go
@@ -209,25 +209,6 @@ func TestFreqLongMeSerDe(t *testing.T) {
checkEquality(t, sk1, sk2)
}
-/*
- @Test
- public void checkFreqLongsMemSerDe() {
- int minSize = 1 << LG_MIN_MAP_SIZE;
- LongsSketch sk1 = new LongsSketch(minSize);
- sk1.update(10, 100);
- sk1.update(10, 100);
- sk1.update(15, 3443); println(sk1.toString());
- sk1.update(1000001, 1010230); println(sk1.toString());
- sk1.update(1000002, 1010230); println(sk1.toString());
-
- byte[] bytearray0 = sk1.toByteArray();
- Memory mem0 = Memory.wrap(bytearray0);
- LongsSketch sk2 = LongsSketch.getInstance(mem0);
-
- checkEquality(sk1, sk2);
- }
-*/
-
func checkEquality(t *testing.T, sk1, sk2 *LongSketch) {
assert.Equal(t, sk1.getNumActiveItems(), sk2.getNumActiveItems())
assert.Equal(t, sk1.getCurrentMapCapacity(), sk2.getCurrentMapCapacity())
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org