@@ -3,7 +3,6 @@ package zenity_test
3
3
import (
4
4
"context"
5
5
"errors"
6
- "fmt"
7
6
"os"
8
7
"path/filepath"
9
8
"testing"
@@ -124,7 +123,7 @@ func TestSelectFile_script(t *testing.T) {
124
123
}
125
124
126
125
t .Run ("Cancel" , func (t * testing.T ) {
127
- zenity .Info (fmt . Sprintf ( "In the file selection dialog, cancel." ) )
126
+ zenity .Info ("In the file selection dialog, cancel." )
128
127
str , err := zenity .SelectFile ()
129
128
if skip , err := skip (err ); skip {
130
129
t .Skip ("skipping:" , err )
@@ -134,7 +133,7 @@ func TestSelectFile_script(t *testing.T) {
134
133
}
135
134
})
136
135
t .Run ("File" , func (t * testing.T ) {
137
- zenity .Info (fmt . Sprintf ( "In the file selection dialog, pick any file." ) )
136
+ zenity .Info ("In the file selection dialog, pick any file." )
138
137
str , err := zenity .SelectFile ()
139
138
if skip , err := skip (err ); skip {
140
139
t .Skip ("skipping:" , err )
@@ -147,7 +146,7 @@ func TestSelectFile_script(t *testing.T) {
147
146
}
148
147
})
149
148
t .Run ("Directory" , func (t * testing.T ) {
150
- zenity .Info (fmt . Sprintf ( "In the file selection dialog, pick any directory." ) )
149
+ zenity .Info ("In the file selection dialog, pick any directory." )
151
150
str , err := zenity .SelectFile (zenity .Directory ())
152
151
if skip , err := skip (err ); skip {
153
152
t .Skip ("skipping:" , err )
@@ -169,7 +168,7 @@ func TestSelectFileMultiple_script(t *testing.T) {
169
168
}
170
169
171
170
t .Run ("Cancel" , func (t * testing.T ) {
172
- zenity .Info (fmt . Sprintf ( "In the file selection dialog, cancel." ) )
171
+ zenity .Info ("In the file selection dialog, cancel." )
173
172
lst , err := zenity .SelectFileMultiple ()
174
173
if skip , err := skip (err ); skip {
175
174
t .Skip ("skipping:" , err )
@@ -179,7 +178,7 @@ func TestSelectFileMultiple_script(t *testing.T) {
179
178
}
180
179
})
181
180
t .Run ("Files" , func (t * testing.T ) {
182
- zenity .Info (fmt . Sprintf ( "In the file selection dialog, pick two files." ) )
181
+ zenity .Info ("In the file selection dialog, pick two files." )
183
182
lst , err := zenity .SelectFileMultiple ()
184
183
if skip , err := skip (err ); skip {
185
184
t .Skip ("skipping:" , err )
@@ -194,7 +193,7 @@ func TestSelectFileMultiple_script(t *testing.T) {
194
193
}
195
194
})
196
195
t .Run ("Directories" , func (t * testing.T ) {
197
- zenity .Info (fmt . Sprintf ( "In the file selection dialog, pick two directories." ) )
196
+ zenity .Info ("In the file selection dialog, pick two directories." )
198
197
lst , err := zenity .SelectFileMultiple (zenity .Directory ())
199
198
if skip , err := skip (err ); skip {
200
199
t .Skip ("skipping:" , err )
@@ -221,7 +220,7 @@ func TestSelectFileSave_script(t *testing.T) {
221
220
}
222
221
223
222
t .Run ("Cancel" , func (t * testing.T ) {
224
- zenity .Info (fmt . Sprintf ( "In the file save dialog, cancel." ) )
223
+ zenity .Info ("In the file save dialog, cancel." )
225
224
str , err := zenity .SelectFileSave ()
226
225
if skip , err := skip (err ); skip {
227
226
t .Skip ("skipping:" , err )
@@ -231,7 +230,7 @@ func TestSelectFileSave_script(t *testing.T) {
231
230
}
232
231
})
233
232
t .Run ("Name" , func (t * testing.T ) {
234
- zenity .Info (fmt . Sprintf ( "In the file save dialog, press OK." ) )
233
+ zenity .Info ("In the file save dialog, press OK." )
235
234
str , err := zenity .SelectFileSave (
236
235
zenity .ConfirmOverwrite (),
237
236
zenity .Filename ("Χρτο.go" ),
0 commit comments