MaximilianAnzinger / gad2022-tests

Collection of JUnit Tests for GAD exercises at TUM in SS22
MIT License
38 stars 17 forks source link

fix testValidAVLSame2 #30

Closed flooxo closed 2 years ago

flooxo commented 2 years ago

testValidAVLSimple2() creates a tree with 3 nodes, with the value 3 as root, 2 as left child and 1 as right child and is therefore not a valid tree, because the right value is smaller than its parent. Wrongly, however, it is considered correct in the test image -> not a valid tree because the right value must be equal or bigger?

w00000dy commented 2 years ago

Thank you! You are absolutely right. I don't know why I didn't notice that. 😆

MaximilianAnzinger commented 2 years ago

Great work, thanks for your contribution 🐧