-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from european-central-bank/frequency
Frequency fixes
- Loading branch information
Showing
11 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
resources/project/Root.type.Files/tests.type.File/tApp.m.type.File.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<Info> | ||
<Category UUID="FileClassCategory"> | ||
<Label UUID="test" /> | ||
</Category> | ||
</Info> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
classdef tApp < matlab.uitest.TestCase | ||
|
||
properties | ||
App | ||
end | ||
|
||
methods (TestMethodSetup) | ||
|
||
function loadApp(tc) | ||
tc.App = BEARapp20a(); | ||
addTeardown(tc, @() delete(tc.App)); | ||
end | ||
|
||
end | ||
|
||
methods (Test) | ||
|
||
function tFrequency(tc) | ||
|
||
tc.choose(tc.App.frequency_cp, 'monthly'); | ||
tc.press(tc.App.QuickExporttoWorkspaceButton) | ||
opts = evalin('base', 'opts'); | ||
tc.verifyEqual(opts.frequency, 3); | ||
|
||
tc.choose(tc.App.frequency_cp, 'quarterly'); | ||
tc.press(tc.App.QuickExporttoWorkspaceButton) | ||
opts = evalin('base', 'opts'); | ||
tc.verifyEqual(opts.frequency, 2); | ||
|
||
tc.choose(tc.App.frequency_cp, 'yearly'); | ||
tc.press(tc.App.QuickExporttoWorkspaceButton) | ||
opts = evalin('base', 'opts'); | ||
tc.verifyEqual(opts.frequency, 1); | ||
|
||
tc.choose(tc.App.frequency_cp, 'weekly'); | ||
tc.press(tc.App.QuickExporttoWorkspaceButton) | ||
opts = evalin('base', 'opts'); | ||
tc.verifyEqual(opts.frequency, 4); | ||
|
||
tc.choose(tc.App.frequency_cp, 'daily'); | ||
tc.press(tc.App.QuickExporttoWorkspaceButton) | ||
opts = evalin('base', 'opts'); | ||
tc.verifyEqual(opts.frequency, 5); | ||
|
||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters