test-hashtables.scm 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ;;; Copyright (C) 2025 Igalia, S.L.
  2. ;;; Copyright (C) 2024 David Thompson <dave@spritely.institute>
  3. ;;; Copyright (C) 2023, 2024 Robin Templeton
  4. ;;;
  5. ;;; Licensed under the Apache License, Version 2.0 (the "License");
  6. ;;; you may not use this file except in compliance with the License.
  7. ;;; You may obtain a copy of the License at
  8. ;;;
  9. ;;; http://www.apache.org/licenses/LICENSE-2.0
  10. ;;;
  11. ;;; Unless required by applicable law or agreed to in writing, software
  12. ;;; distributed under the License is distributed on an "AS IS" BASIS,
  13. ;;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ;;; See the License for the specific language governing permissions and
  15. ;;; limitations under the License.
  16. ;;; Commentary:
  17. ;;;
  18. ;;; Hashtable tests.
  19. ;;;
  20. ;;; Code:
  21. (use-modules (srfi srfi-64)
  22. (test utils)
  23. (test hashtable-utils))
  24. (test-begin "test-hashtables")
  25. (with-additional-imports ((hoot hashtables))
  26. (test-hashtable-impl make-hashtable
  27. make-eq-hashtable
  28. make-eqv-hashtable
  29. hashtable?
  30. hashtable-hash
  31. hashtable-equiv
  32. hashtable-size
  33. hashtable-ref
  34. hashtable-set!
  35. hashtable-delete!
  36. hashtable-clear!
  37. hashtable-contains?
  38. hashtable-copy
  39. hashtable-keys
  40. hashtable-values
  41. hashtable-for-each
  42. hashtable-fold))
  43. (test-end* "test-hashtables")