# Using consult in a directive to load source code; it puzzles me?

**URL:** <https://swi-prolog.discourse.group/t/using-consult-in-a-directive-to-load-source-code-it-puzzles-me/2081>\
**Category:** Help!\
**Created:** [March 31, 2020, 12:03pm UTC](https://swi-prolog.discourse.group/t/using-consult-in-a-directive-to-load-source-code-it-puzzles-me/2081 "2020-03-31T12:03:19Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![pmoura](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/pmoura/32/11_2.png) [@pmoura](https://swi-prolog.discourse.group/u/pmoura)\
**Post date:** [March 31, 2020, 10:31pm UTC](https://swi-prolog.discourse.group/t/using-consult-in-a-directive-to-load-source-code-it-puzzles-me/2081/14 "2020-03-31T22:31:44Z")

</div>

> [@EricGT](#):
>
> My test for `castor` and `pollux`

That drove my attention that I was also missing a test for that example in the Logtalk port of EDCGs. Added as:

```logtalk
test(gemini_1) :-
	gemini::p(1, S0, S, _),
	S0 == S.

```

---

_[View the full topic](https://swi-prolog.discourse.group/t/using-consult-in-a-directive-to-load-source-code-it-puzzles-me/2081)._
