chore:added tests to triangle2.rb