New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw errors on an incorrect release #72

Closed
Enchufa2 opened this Issue Aug 7, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@Enchufa2
Member

Enchufa2 commented Aug 7, 2016

Throw an error in these cases:

  • Not previously seized:
t <- create_trajectory() %>% 
  release("dummy", 1)

env <- simmer() %>% 
  add_resource("dummy", 1) %>% 
  add_generator("asdf", t, at(0)) %>%
  run()
  • Incorrect amount:
t <- create_trajectory() %>% 
  seize("dummy", 1) %>%
  release("dummy", 2)

env <- simmer() %>% 
  add_resource("dummy", 1) %>% 
  add_generator("asdf", t, at(0)) %>%
  run()

@Enchufa2 Enchufa2 added the bug label Aug 7, 2016

@Enchufa2 Enchufa2 added this to the v3.4.0 milestone Aug 7, 2016

@Enchufa2 Enchufa2 changed the title from Throw errors in an incorrect release to Throw errors on an incorrect release Aug 7, 2016

@Enchufa2 Enchufa2 closed this in bd5f7fd Aug 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment