#!/bin/bash

set -euo pipefail

# Notes:
# At the moment, the terminal must be set to width 135 x height 34 for
# these tests to pass.

# change to directory that contains this script
cd "$(dirname "$0")"

# Issue regression tests
./342_streams.rb

# Integration tests
./dsl_app_001.rb
./dsl_app_002.rb
./dsl_app_003.rb
./dsl_app_004.rb
./dsl_app_005.rb
./dsl_app_006.rb
./dsl_app_007.rb
./dsl_app_008.rb
./dsl_app_009.rb
./dsl_app_010.rb
./dsl_app_011.rb
./dsl_app_012.rb
./dsl_app_013.rb
./dsl_app_014.rb
./dsl_app_015.rb
./dsl_app_016.rb
./dsl_app_021.rb
./dsl_app_022.rb
./dsl_app_030.rb
./dsl_app_031.rb
./dsl_app_040.rb
./dsl_app_041.rb
./dsl_app_042.rb

# Test some border functionality
./dsl_app_border_001.rb # border off
./dsl_app_border_002.rb # no top
./dsl_app_border_003.rb # no right
./dsl_app_border_004.rb # no bottom
./dsl_app_border_005.rb # no left
./dsl_app_border_006.rb # custom vertices
./dsl_app_border_007.rb # custom edges
./dsl_app_border_008.rb # only top
./dsl_app_border_009.rb # only right
./dsl_app_border_010.rb # only bottom
./dsl_app_border_011.rb # only left
./dsl_app_border_012.rb # border on

# Test some geometry functionality
./dsl_app_geometry_001.rb
./dsl_app_geometry_002.rb
./dsl_app_geometry_003.rb
./dsl_app_geometry_004.rb
./dsl_app_geometry_005.rb

# Failing
# ./dsl_app_017.rb
