Skip to content

Commit 207e844

Browse files
nanobowersmrkn
authored andcommitted
adding tests for block canvas
1 parent 9ac4f73 commit 207e844

6 files changed

Lines changed: 53 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
▛▄  ▘         ▘   ▖  ▝   ▗  ▝      ▘▗▙▞▀
2+
▌ ▀▄               ▖        ▗   ▗▄▞▀▘  
3+
▌▘  ▀▄   ▝ ▐ ▌      ▄    ▘  ▗▄▞▀▘   ▘  
4+
▌   ▀▀▀█▀▛▀▀▀▀▀▀▀▀▀▀▄▄▄▄▄▄▟█▙▄▄▄▙▄▄▄▝▘ 
5+
▌▗ ▝    ▀▙          ▗▄▞▀▘   ▖   ▖▝  ▘  
6+
▌   ▖    ▖▀▄   ▝▗▄▞▛▘ ▗       ▖   ▖▘▝  
7+
▌      ▗    ▜▄▞▀▘   ▘      ▝     ▗     ▗
8+
▌ ▘ ▖   ▗▄▞▀▘ ▀▄    ▖        ▗▗        
9+
▌  ▄▗▄▞▀▘      ▘▀▄   ▝▗         ▗▝    ▝
10+
▙▙▞▀▀  ▖          ▀▄▖  ▀▘▗        ▖ ▖  
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
▛▄ ▘ ▘ ▖ ▝ ▗ ▝ ▘▗▙▞▀
2+
▌ ▀▄ ▖ ▗ ▗▄▞▀▘
3+
▌▘ ▀▄ ▝ ▐ ▌ ▄ ▘ ▗▄▞▀▘ ▘
4+
▌ ▀▀▀█▀▛▀▀▀▀▀▀▀▀▀▀▄▄▄▄▄▄▟█▙▄▄▄▙▄▄▄▝▘
5+
▌▗ ▝ ▀▙ ▗▄▞▀▘ ▖ ▖▝ ▘
6+
▌ ▖ ▖▀▄ ▝▗▄▞▛▘ ▗ ▖ ▖▘▝
7+
▌ ▗ ▜▄▞▀▘ ▘ ▝ ▗ ▗
8+
▌ ▘ ▖ ▗▄▞▀▘ ▀▄ ▖ ▗▗
9+
▌ ▄▗▄▞▀▘ ▘▀▄ ▝▗ ▗▝ ▝
10+
▙▙▞▀▀ ▖ ▀▄▖ ▀▘▗ ▖ ▖
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
▌▘  ▀▄   ▝ ▐ ▌      ▄    ▘  ▗▄▞▀▘   ▘  
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
┌────────────────────────────────────────┐
2+
│▛▄  ▘         ▘   ▖  ▝   ▗  ▝      ▘▗▙▞▀│
3+
│▌ ▀▄               ▖        ▗   ▗▄▞▀▘   │
4+
│▌▘  ▀▄   ▝ ▐ ▌      ▄    ▘  ▗▄▞▀▘   ▘   │
5+
│▌   ▀▀▀█▀▛▀▀▀▀▀▀▀▀▀▀▄▄▄▄▄▄▟█▙▄▄▄▙▄▄▄▝▘  │
6+
│▌▗ ▝    ▀▙          ▗▄▞▀▘   ▖   ▖▝  ▘   │
7+
│▌   ▖    ▖▀▄   ▝▗▄▞▛▘ ▗       ▖   ▖▘▝   │
8+
│▌      ▗    ▜▄▞▀▘   ▘      ▝     ▗     ▗│
9+
│▌ ▘ ▖   ▗▄▞▀▘ ▀▄    ▖        ▗▗         │
10+
│▌  ▄▗▄▞▀▘      ▘▀▄   ▝▗         ▗▝    ▝ │
11+
│▙▙▞▀▀  ▖          ▀▄▖  ▀▘▗        ▖ ▖   │
12+
└────────────────────────────────────────┘
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
┌────────────────────────────────────────┐
2+
│▛▄ ▘ ▘ ▖ ▝ ▗ ▝ ▘▗▙▞▀│
3+
│▌ ▀▄ ▖ ▗ ▗▄▞▀▘ │
4+
│▌▘ ▀▄ ▝ ▐ ▌ ▄ ▘ ▗▄▞▀▘ ▘ │
5+
│▌ ▀▀▀█▀▛▀▀▀▀▀▀▀▀▀▀▄▄▄▄▄▄▟█▙▄▄▄▙▄▄▄▝▘ │
6+
│▌▗ ▝ ▀▙ ▗▄▞▀▘ ▖ ▖▝ ▘ │
7+
│▌ ▖ ▖▀▄ ▝▗▄▞▛▘ ▗ ▖ ▖▘▝ │
8+
│▌ ▗ ▜▄▞▀▘ ▘ ▝ ▗ ▗│
9+
│▌ ▘ ▖ ▗▄▞▀▘ ▀▄ ▖ ▗▗ │
10+
│▌ ▄▗▄▞▀▘ ▘▀▄ ▝▗ ▗▝ ▝ │
11+
│▙▙▞▀▀ ▖ ▀▄▖ ▀▘▗ ▖ ▖ │
12+
└────────────────────────────────────────┘

test/test-canvas.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module CanvasTestCases
66
ascii: UnicodePlot::AsciiCanvas,
77
braille: UnicodePlot::BrailleCanvas,
88
density: UnicodePlot::DensityCanvas,
9-
dot: UnicodePlot::DotCanvas
9+
dot: UnicodePlot::DotCanvas,
10+
block: UnicodePlot::BlockCanvas
1011
}.freeze
1112

1213
def self.included(mod)
@@ -136,3 +137,9 @@ class DotCanvasTest < Test::Unit::TestCase
136137

137138
include CanvasTestCases
138139
end
140+
141+
class BlockCanvasTest < Test::Unit::TestCase
142+
CANVAS_NAME = :block
143+
144+
include CanvasTestCases
145+
end

0 commit comments

Comments
 (0)