@@ -73,3 +73,57 @@ fn custom_background_color_html() {
7373 snapbox:: file![ "custom_background_color.html" : Text ] . raw( )
7474 ) ;
7575}
76+
77+ #[ test]
78+ fn sgr_off_codes ( ) {
79+ let input = std:: fs:: read_to_string ( "tests/sgr_off_codes.vte" ) . unwrap ( ) ;
80+ let actual = anstyle_svg:: Term :: new ( ) . render_svg ( & input) ;
81+ snapbox:: assert_data_eq!( actual, snapbox:: file![ "sgr_off_codes.svg" : Text ] . raw( ) ) ;
82+ }
83+
84+ #[ test]
85+ fn sgr_off_codes_html ( ) {
86+ let input = std:: fs:: read_to_string ( "tests/sgr_off_codes.vte" ) . unwrap ( ) ;
87+ let actual = anstyle_svg:: Term :: new ( ) . render_html ( & input) ;
88+ snapbox:: assert_data_eq!( actual, snapbox:: file![ "sgr_off_codes.html" : Text ] . raw( ) ) ;
89+ }
90+
91+ #[ test]
92+ fn underline_subparams ( ) {
93+ let input = std:: fs:: read_to_string ( "tests/underline_subparams.vte" ) . unwrap ( ) ;
94+ let actual = anstyle_svg:: Term :: new ( ) . render_svg ( & input) ;
95+ snapbox:: assert_data_eq!(
96+ actual,
97+ snapbox:: file![ "underline_subparams.svg" : Text ] . raw( )
98+ ) ;
99+ }
100+
101+ #[ test]
102+ fn underline_subparams_html ( ) {
103+ let input = std:: fs:: read_to_string ( "tests/underline_subparams.vte" ) . unwrap ( ) ;
104+ let actual = anstyle_svg:: Term :: new ( ) . render_html ( & input) ;
105+ snapbox:: assert_data_eq!(
106+ actual,
107+ snapbox:: file![ "underline_subparams.html" : Text ] . raw( )
108+ ) ;
109+ }
110+
111+ #[ test]
112+ fn underline_color_reset ( ) {
113+ let input = std:: fs:: read_to_string ( "tests/underline_color_reset.vte" ) . unwrap ( ) ;
114+ let actual = anstyle_svg:: Term :: new ( ) . render_svg ( & input) ;
115+ snapbox:: assert_data_eq!(
116+ actual,
117+ snapbox:: file![ "underline_color_reset.svg" : Text ] . raw( )
118+ ) ;
119+ }
120+
121+ #[ test]
122+ fn underline_color_reset_html ( ) {
123+ let input = std:: fs:: read_to_string ( "tests/underline_color_reset.vte" ) . unwrap ( ) ;
124+ let actual = anstyle_svg:: Term :: new ( ) . render_html ( & input) ;
125+ snapbox:: assert_data_eq!(
126+ actual,
127+ snapbox:: file![ "underline_color_reset.html" : Text ] . raw( )
128+ ) ;
129+ }
0 commit comments