parent
cefbd70ab7
commit
3c130352a0
9 changed files with 4019 additions and 33 deletions
16
tests/test/dir/collatz.py
Executable file
16
tests/test/dir/collatz.py
Executable file
|
@ -0,0 +1,16 @@
|
|||
|
||||
def nextInSequence(number):
|
||||
if isinstance(number, int):
|
||||
if number % 2 == 0:
|
||||
return number // 2
|
||||
else:
|
||||
return 3*number+1
|
||||
else:
|
||||
raise TypeError('input must be int!')
|
||||
|
||||
def seqenceLength(number):
|
||||
length = 0
|
||||
while number != 1:
|
||||
number = nextInSequence(number)
|
||||
length += 1
|
||||
return length
|
17
tests/test/dir/subdir/linked.adoc
Normal file
17
tests/test/dir/subdir/linked.adoc
Normal file
|
@ -0,0 +1,17 @@
|
|||
= relatively linked doc
|
||||
Gabe Venberg
|
||||
:imagesdir: ../../images/
|
||||
:reproducible:
|
||||
:giturl: git.venberg.xyz/Gabe/adocStaticSiteGen
|
||||
|
||||
[#test-pattern]
|
||||
.Technical Difficulties
|
||||
[link={giturl}]
|
||||
image::test_patern.jpg[Stand By]
|
||||
|
||||
https://git.venberg.xyz/Gabe/adocStaticSiteGen
|
||||
|
||||
.A mechanical marvel
|
||||
video::IvUU8joBb1Q[youtube]
|
||||
|
||||
<<../../landing_page.adoc#_link_tests,back to where you came!>>
|
Loading…
Add table
Add a link
Reference in a new issue