We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebcf024 + 80620c2 commit 1acf17dCopy full SHA for 1acf17d
tests/test_unit_convertToValidCamelCase.m
@@ -0,0 +1,23 @@
1
+% (C) Copyright 2021 CPP BIDS SPM-pipeline developers
2
+
3
+function test_suite = test_unit_convertToValidCamelCase %#ok<*STOUT>
4
+ try % assignment of 'localfunctions' is necessary in Matlab >= 2016
5
+ test_functions = localfunctions(); %#ok<*NASGU>
6
+ catch % no problem; early Matlab versions can use initTestSuite fine
7
+ end
8
+ initTestSuite;
9
+end
10
11
+function test_convertToValidCamelCaseBasic()
12
13
+ str = 'foo bar';
14
+ str = convertToValidCamelCase(str);
15
+ assertEqual(str, 'fooBar');
16
17
+ %% set up
18
19
+ str = '&|@#-_(!{})01[]%+/=:;.?,\<> visual task';
20
21
+ assertEqual(str, '01VisualTask');
22
23
0 commit comments