Osmocom_CTRL_Functions: Add f_ctrl_get_exp() function to GET + match expected
diff --git a/library/Osmocom_CTRL_Functions.ttcn b/library/Osmocom_CTRL_Functions.ttcn
index 04848ce..89cf04f 100644
--- a/library/Osmocom_CTRL_Functions.ttcn
+++ b/library/Osmocom_CTRL_Functions.ttcn
@@ -59,4 +59,15 @@
 		}
 		return rx.trap.val;
 	}
+
+	/* Expect a matching GET result */
+	function f_ctrl_get_exp(IPA_CTRL_PT pt, CtrlVariable variable, template CtrlValue exp) {
+		var charstring ctrl_resp;
+		ctrl_resp := f_ctrl_get(pt, variable);
+		if (not match(ctrl_resp, exp)) {
+			setverdict(fail, "Unexpected " & variable & ":" & ctrl_resp);
+		}
+	}
+
+
 }