fix tests after function rename

This commit is contained in:
Motiejus Jakštys 2021-05-19 22:57:51 +03:00 committed by Motiejus Jakštys
parent 3a7ac37ae9
commit a761e3f29d
2 changed files with 4 additions and 3 deletions

View File

@ -163,7 +163,7 @@ begin
perform assert_equals(fig8gen3, st_astext(eliminations[3])); perform assert_equals(fig8gen3, st_astext(eliminations[3]));
end $$ language plpgsql; end $$ language plpgsql;
-- testing wm_exaggerate_bend in isolation -- testing wm_exaggerate_bend2 in isolation
do $$ do $$
declare declare
fig3b2 geometry; fig3b2 geometry;
@ -172,7 +172,7 @@ declare
begin begin
select way from wm_debug where name='fig3' and stage='bbends' and gen=1 and nbend=2 into fig3b2; select way from wm_debug where name='fig3' and stage='bbends' and gen=1 and nbend=2 into fig3b2;
size = wm_adjsize(fig3b2); size = wm_adjsize(fig3b2);
bend = wm_exaggerate_bend(fig3b2, size, 50.); bend = wm_exaggerate_bend2(fig3b2, size, 50.);
perform assert_equals('ST_LineString', st_geometrytype(bend)); perform assert_equals('ST_LineString', st_geometrytype(bend));
insert into wm_debug(stage, name, gen, nbend, way) values('manual', 'fig3', 1, 1, bend); insert into wm_debug(stage, name, gen, nbend, way) values('manual', 'fig3', 1, 1, bend);
end $$ language plpgsql; end $$ language plpgsql;

View File

@ -123,7 +123,8 @@ begin
('salvis-visvalingam-' || i, geom2), ('salvis-visvalingam-' || i, geom2),
('salvis-visvalingam-' || i || '-chaikin', st_chaikinsmoothing(geom2, 5)); ('salvis-visvalingam-' || i || '-chaikin', st_chaikinsmoothing(geom2, 5));
end loop; end loop;
foreach i in array array[75, 375] loop --foreach i in array array[75, 375] loop
foreach i in array array[75] loop
geom3 = st_simplifywm((select way from wm_visuals where name='salvis'), i, 50, 'salvis-' || i); geom3 = st_simplifywm((select way from wm_visuals where name='salvis'), i, 50, 'salvis-' || i);
insert into wm_visuals(name, way) values insert into wm_visuals(name, way) values
('salvis-wm-' || i, geom3); ('salvis-wm-' || i, geom3);