Skip to content

Unit Tests for Homework01 Assignment

Matthäus Khandare requested to merge fhs49834/algodat-2024-tests:main into main

Tests for the following Methods inAlgoDat.TreeDictionary, AlgoDat.ListDictionary and AlgoDat.Dictionary:

  • Add() & Get() -> If Get() on non existing key is called, return default
  • Set() -> (Setting only works if key exists, otherwise Exception is thrown)
  • Contains() -> boolean
  • Remove() -> (Removing should only work if key exists, otherwise Exception is thrown). Only in AlgoDat.Dictionary it just returns.

Merge request reports