@sasjs/core 5.2.8 → 5.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -253,7 +253,7 @@ The following repositories are also worth checking out:
253
253
 
254
254
  ## Contributors ✨
255
255
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
256
- [![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
256
+ [![All Contributors](https://img.shields.io/badge/all_contributors-16-orange.svg?style=flat-square)](#contributors-)
257
257
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
258
258
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
259
259
 
@@ -282,6 +282,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
282
282
  </tr>
283
283
  <tr>
284
284
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/andyjessen"><img src="https://avatars.githubusercontent.com/u/62343929?v=4?s=100" width="100px;" alt="andyjessen"/><br /><sub><b>andyjessen</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=andyjessen" title="Documentation">📖</a></td>
285
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/Nakaya-Ryo"><img src="https://avatars.githubusercontent.com/u/207527203?v=4?s=100" width="100px;" alt="NAKAYA-Ryo"/><br /><sub><b>NAKAYA-Ryo</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=Nakaya-Ryo" title="Code">💻</a> <a href="https://github.com/sasjs/core/commits?author=Nakaya-Ryo" title="Tests">⚠️</a></td>
285
286
  </tr>
286
287
  </tbody>
287
288
  </table>
@@ -20,7 +20,7 @@
20
20
  @param [in] desc= (Testing observations) The user provided test description
21
21
  @param [out] outds= (work.test_results) The output dataset to contain the
22
22
  results. If it does not exist, it will be created, with the following format:
23
- |TEST_DESCRIPTION:$256|TEST_RESULT:$4|TEST_COMMENTS:$256|
23
+ |TEST_DESCRIPTION:$256|TEST_RESULT:$5|TEST_COMMENTS:$256|
24
24
  |---|---|---|
25
25
  |User Provided description|PASS|Dataset &inds contained ALL columns|
26
26
 
@@ -35,7 +35,7 @@
35
35
  )/*/STORE SOURCE*/;
36
36
 
37
37
  data ;
38
- length test_result $4 test_description $256 test_comments $256;
38
+ length test_result $5 test_description $256 test_comments $256;
39
39
  test_description=symget('desc');
40
40
  test_comments="&sysmacroname: Test result of "!!symget('iftrue');
41
41
  %if %eval(%unquote(&iftrue)) %then %do;
@@ -35,11 +35,12 @@
35
35
  @param [in] desc= (0) The user provided test description
36
36
  @param [in] test= (ALL) The test to apply. Valid values are:
37
37
  @li ALL - Test is a PASS if ALL columns exist in &inds
38
- @li ANY - Test is a PASS if ANY of the columns exist in &inds
38
+ @li ANY - Test is a PASS if ANY of the columns exist in &inds - including
39
+ when all of them do
39
40
  @li NONE - Test is a PASS if NONE of the columns exist in &inds
40
41
  @param [out] outds= (work.test_results) The output dataset to contain the
41
42
  results. If it does not exist, it will be created, with the following format:
42
- |TEST_DESCRIPTION:$256|TEST_RESULT:$4|TEST_COMMENTS:$256|
43
+ |TEST_DESCRIPTION:$256|TEST_RESULT:$5|TEST_COMMENTS:$256|
43
44
  |---|---|---|
44
45
  |User Provided description|PASS|Dataset &inds contained ALL columns|
45
46
 
@@ -108,7 +109,7 @@
108
109
  %end;
109
110
 
110
111
  data;
111
- length test_result $4 test_description $256 test_comments $256;
112
+ length test_result $5 test_description $256 test_comments $256;
112
113
  test_description=symget('desc');
113
114
  if test_description='0'
114
115
  then test_description="Testing &inds for existence of &test of: &cols";
@@ -121,7 +122,8 @@
121
122
  %end;
122
123
  %end;
123
124
  %else %if &test=ANY %then %do;
124
- %if &result=SOME %then %do;
125
+ /* SOME or ALL - if every column exists then any of them does too */
126
+ %if &result ne NONE %then %do;
125
127
  test_result='PASS';
126
128
  %end;
127
129
  %end;
@@ -45,7 +45,7 @@
45
45
  @li NOVAL - Test is a PASS if there are NO matches in checkvals
46
46
  @param [out] outds= (work.test_results) The output dataset to contain the
47
47
  results. If it does not exist, it will be created, with the following format:
48
- |TEST_DESCRIPTION:$256|TEST_RESULT:$4|TEST_COMMENTS:$256|
48
+ |TEST_DESCRIPTION:$256|TEST_RESULT:$5|TEST_COMMENTS:$256|
49
49
  |---|---|---|
50
50
  |User Provided description|PASS|Column &indscol contained ALL target vals|
51
51
 
@@ -143,7 +143,7 @@
143
143
  )
144
144
 
145
145
  data;
146
- length test_result $4 test_description $256 test_comments $256;
146
+ length test_result $5 test_description $256 test_comments $256;
147
147
  test_description=symget('desc');
148
148
  test_result='FAIL';
149
149
  test_comments="&sysmacroname: &lib..&ds..&col has &result/&orig values "
@@ -25,7 +25,7 @@
25
25
  the provided integer
26
26
  @param [out] outds= (work.test_results) The output dataset to contain the
27
27
  results. If it does not exist, it will be created, with the following format:
28
- |TEST_DESCRIPTION:$256|TEST_RESULT:$4|TEST_COMMENTS:$256|
28
+ |TEST_DESCRIPTION:$256|TEST_RESULT:$5|TEST_COMMENTS:$256|
29
29
  |---|---|---|
30
30
  |User Provided description|PASS|Dataset &inds has XX obs|
31
31
 
@@ -87,7 +87,7 @@
87
87
  %end;
88
88
 
89
89
  data &ds;
90
- length test_result $4 test_description $256 test_comments $256;
90
+ length test_result $5 test_description $256 test_comments $256;
91
91
  test_description=symget('desc');
92
92
  test_result='FAIL';
93
93
  test_comments="&sysmacroname: Dataset &inds has &nobs observations.";
@@ -46,7 +46,7 @@
46
46
  scope snapshot
47
47
  @param [out] outds= (work.test_results) The output dataset to contain the
48
48
  results. If it does not exist, it will be created, with the following format:
49
- |TEST_DESCRIPTION:$256|TEST_RESULT:$4|TEST_COMMENTS:$256|
49
+ |TEST_DESCRIPTION:$256|TEST_RESULT:$5|TEST_COMMENTS:$256|
50
50
  |---|---|---|
51
51
  |User Provided description|PASS|No out of scope variables created or modified|
52
52
 
@@ -131,7 +131,7 @@
131
131
  %end;
132
132
 
133
133
  data ;
134
- length test_result $4 test_description $256 test_comments $256;
134
+ length test_result $5 test_description $256 test_comments $256;
135
135
  test_description=symget('desc');
136
136
  test_comments=symget('test_comments');
137
137
  test_result=symget('test_result');
package/package.json CHANGED
@@ -44,5 +44,5 @@
44
44
  "devDependencies": {
45
45
  "@nogoo9/gitleaks": "8.30.1-post.2"
46
46
  },
47
- "version": "5.2.8"
47
+ "version": "5.2.10"
48
48
  }