test(derived): declare the real dependencies in the SAS tests
The test fixtures now state the inputs their expressions actually use: LIBREF DSN, DERIVED_NOTE, PRIMARY_KEY_FIELD, and none for a literal-only expression. The getdata label assertion follows the new <VAR_NM>=<expr> label.
This commit is contained in:
1 parent
813bce6856
commit
5f6569b9e5
4 files changed
+6
-6
No files matched your search
@@ -156,7 +156,7 @@ insert into &dclib..mpe_derived set
|
||||
,libref='WORK'
|
||||
,dsn='CLASS'
|
||||
,var_nm='FLAG_DT'
|
||||
,var_dependencies='AGE'
|
||||
,var_dependencies=''
|
||||
,var_type='N'
|
||||
,var_len=8
|
||||
,var_fmt='DATE9.'
|
||||
|
||||
@@ -258,7 +258,7 @@ insert into &dc_libref..mpe_derived set
|
||||
,libref="%scan(&dclib..MPE_TABLES,1,.)"
|
||||
,dsn="%scan(&dclib..MPE_TABLES,2,.)"
|
||||
,var_nm='DERIVED_NOTE'
|
||||
,var_dependencies='STATE'
|
||||
,var_dependencies='LIBREF DSN'
|
||||
,var_type='C'
|
||||
,var_len=41
|
||||
,var_fmt=''
|
||||
@@ -270,7 +270,7 @@ insert into &dc_libref..mpe_derived set
|
||||
,libref="%scan(&dclib..MPE_TABLES,1,.)"
|
||||
,dsn="%scan(&dclib..MPE_TABLES,2,.)"
|
||||
,var_nm='DERIVED_NOTE2'
|
||||
,var_dependencies='REGION STATE'
|
||||
,var_dependencies='DERIVED_NOTE'
|
||||
,var_type='C'
|
||||
,var_len=45
|
||||
,var_fmt=''
|
||||
@@ -350,7 +350,7 @@ run;
|
||||
|
||||
data work.chk4b;
|
||||
set work.cols4;
|
||||
where name='DERIVED_NOTE' and label=:'DERIVED:';
|
||||
where name='DERIVED_NOTE' and label=:'DERIVED_NOTE=';
|
||||
run;
|
||||
%mp_assertdsobs(work.chk4b,
|
||||
desc=Test4 - derived column is labelled,
|
||||
|
||||
@@ -52,7 +52,7 @@ insert into &dc_libref..mpe_derived set
|
||||
,libref="%scan(&dclib..MPE_X_TEST,1,.)"
|
||||
,dsn="%scan(&dclib..MPE_X_TEST,2,.)"
|
||||
,var_nm='DERIVED_KEY'
|
||||
,var_dependencies='STATE'
|
||||
,var_dependencies='PRIMARY_KEY_FIELD'
|
||||
,var_type='C'
|
||||
,var_len=20
|
||||
,var_fmt=''
|
||||
|
||||
@@ -92,7 +92,7 @@ insert into &dc_libref..mpe_derived set
|
||||
,libref="%scan(&dclib..MPE_TABLES,1,.)"
|
||||
,dsn="%scan(&dclib..MPE_TABLES,2,.)"
|
||||
,var_nm='DERIVED_NOTE'
|
||||
,var_dependencies='STATE'
|
||||
,var_dependencies='LIBREF DSN'
|
||||
,var_type='C'
|
||||
,var_len=41
|
||||
,var_fmt=''
|
||||
|
||||
Reference in new issue
Block a user