In [1]:
include("deferred_acceptance.jl")


Out[1]:
deferred_acceptance (generic function with 1 method)

In [2]:
m_prefs=[2 3 4;3 4 1;0 0 3;4 1 2;1 2 0]


Out[2]:
5x3 Array{Int64,2}:
 2  3  4
 3  4  1
 0  0  3
 4  1  2
 1  2  0

In [3]:
f_prefs=[3 1 2 3;0 2 0 1;1 0 3 0;2 3 1 2]


Out[3]:
4x4 Array{Int64,2}:
 3  1  2  3
 0  2  0  1
 1  0  3  0
 2  3  1  2

In [4]:
deferred_acceptance(m_prefs,f_prefs)


[3,4,2][0,3,1,2]

In [5]:
include("test_deferred_acceptance.jl")


[0,0,0,3][0,0,4]deferred_acceptance: Error During Test
  Got an exception of type MethodError outside of a @test
  MethodError: `start` has no method matching start(::Void)
   [inlined code] from C:\Users\一織\Documents\My-\test_deferred_acceptance.jl:37
   in anonymous at no file:0
   in include at boot.jl:261
   in include_from_node1 at loading.jl:320
   in include_string at loading.jl:282
   in execute_request_0x535c5df2 at C:\Users\一織\.julia\v0.4\IJulia\src\execute_request.jl:182
   in eventloop at C:\Users\一織\.julia\v0.4\IJulia\src\IJulia.jl:142
   in anonymous at task.jl:447
Test Summary:                  | Error  Total
Testing deferred_acceptance.jl |     1      1
  deferred_acceptance          |     1      1
LoadError: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored.
while loading C:\Users\一織\Documents\My-\test_deferred_acceptance.jl, in expression starting on line 17
while loading In[5], in expression starting on line 1

In [ ]: