From 1241a8d075c5441de9259d525a1c989e0b49c7cb Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Mon, 18 Nov 2024 08:48:15 -0800 Subject: [PATCH] Add (invalid) test cases of proportions == 0.0 --- .../invalid/bad_ancestry_proportions_11.yaml | 14 ++++++++++++++ test-cases/invalid/bad_pulse_proportion_09.yaml | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 test-cases/invalid/bad_ancestry_proportions_11.yaml create mode 100644 test-cases/invalid/bad_pulse_proportion_09.yaml diff --git a/test-cases/invalid/bad_ancestry_proportions_11.yaml b/test-cases/invalid/bad_ancestry_proportions_11.yaml new file mode 100644 index 0000000..e1b36ce --- /dev/null +++ b/test-cases/invalid/bad_ancestry_proportions_11.yaml @@ -0,0 +1,14 @@ +time_units: generations +demes: +- name: a + epochs: + - {start_size: 100, end_time: 50} +- name: b + epochs: + - {start_size: 100, end_time: 50} +- name: c + ancestors: [a, b] + proportions: [0.0, 1.0] + start_time: 100 + epochs: + - {start_size: 100} diff --git a/test-cases/invalid/bad_pulse_proportion_09.yaml b/test-cases/invalid/bad_pulse_proportion_09.yaml new file mode 100644 index 0000000..db7ecf2 --- /dev/null +++ b/test-cases/invalid/bad_pulse_proportion_09.yaml @@ -0,0 +1,16 @@ +time_units: generations +demes: + - name: A + epochs: + - start_size: 1000 + - name: B + epochs: + - start_size: 1000 + - name: C + epochs: + - start_size: 1000 +pulses: +- sources: [A] + dest: C + proportions: [0.] + time: 10